OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 2751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2762 | 2762 |
2763 Document* doc = m_frame->document(); | 2763 Document* doc = m_frame->document(); |
2764 if (!doc) | 2764 if (!doc) |
2765 return false; | 2765 return false; |
2766 | 2766 |
2767 // Clear mouse press state to avoid initiating a drag while context menu is
up. | 2767 // Clear mouse press state to avoid initiating a drag while context menu is
up. |
2768 m_mousePressed = false; | 2768 m_mousePressed = false; |
2769 | 2769 |
2770 static const int kContextMenuMargin = 1; | 2770 static const int kContextMenuMargin = 1; |
2771 | 2771 |
2772 #if OS(WINDOWS) && !OS(WINCE) | 2772 #if OS(WINDOWS) |
2773 int rightAligned = ::GetSystemMetrics(SM_MENUDROPALIGNMENT); | 2773 int rightAligned = ::GetSystemMetrics(SM_MENUDROPALIGNMENT); |
2774 #else | 2774 #else |
2775 int rightAligned = 0; | 2775 int rightAligned = 0; |
2776 #endif | 2776 #endif |
2777 IntPoint location; | 2777 IntPoint location; |
2778 | 2778 |
2779 Node* focusedNode = doc->focusedNode(); | 2779 Node* focusedNode = doc->focusedNode(); |
2780 FrameSelection* selection = m_frame->selection(); | 2780 FrameSelection* selection = m_frame->selection(); |
2781 Position start = selection->selection().start(); | 2781 Position start = selection->selection().start(); |
2782 | 2782 |
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3991 unsigned EventHandler::accessKeyModifiers() | 3991 unsigned EventHandler::accessKeyModifiers() |
3992 { | 3992 { |
3993 #if OS(DARWIN) | 3993 #if OS(DARWIN) |
3994 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 3994 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
3995 #else | 3995 #else |
3996 return PlatformEvent::AltKey; | 3996 return PlatformEvent::AltKey; |
3997 #endif | 3997 #endif |
3998 } | 3998 } |
3999 | 3999 |
4000 } // namespace WebCore | 4000 } // namespace WebCore |
OLD | NEW |