Skip to content

Commit

Permalink
Migrate to OS_MAC and OS_APPLE in pdf
Browse files Browse the repository at this point in the history
Bug: 1105907
Change-Id: I27367f42ea8797dfac1add4d3568ed35fce558f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2324893
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792716}
  • Loading branch information
Avi Drissman authored and Commit Bot committed Jul 29, 2020
1 parent c21a237 commit ce33506
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pdf/pdfium/pdfium_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ bool IsLinkArea(PDFiumPage::Area area) {
// button down events into a right button down events.
MouseInputEvent NormalizeMouseEvent(const MouseInputEvent& event) {
MouseInputEvent normalized_event = event;
#if defined(OS_MACOSX)
#if defined(OS_MAC)
uint32_t modifiers = event.GetModifiers();
if ((event.GetModifiers() & kInputEventModifierControlKey) &&
event.GetButton() == InputEventMouseButtonType::kLeft &&
Expand Down Expand Up @@ -1584,7 +1584,7 @@ bool PDFiumEngine::OnKeyDown(const KeyboardInputEvent& event) {
OnChar(synthesized);
}

#if !defined(OS_MACOSX)
#if !defined(OS_MAC)
// macOS doesn't have keyboard-triggered context menus.
// Scroll focused annotation into view when context menu is invoked through
// keyboard <Shift-F10>.
Expand Down
2 changes: 1 addition & 1 deletion pdf/pdfium/pdfium_form_filler_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ TEST_F(FormFillerTest, DoURIActionWithKeyboardModifier) {
.Times(1);
}

#if defined(OS_MACOSX)
#if defined(OS_MAC)
#define modifier_key PP_INPUTEVENT_MODIFIER_METAKEY;
#else
#define modifier_key PP_INPUTEVENT_MODIFIER_CONTROLKEY
Expand Down

0 comments on commit ce33506

Please sign in to comment.