Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: Source/WebCore/page/ContextMenuController.h

Issue 14185003: Use ContextMenu code path that was guarded by CROSS_PLATFORM_CONTEXT_MENU (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use ContextMenu code path that was guarded by CROSS_PLATFORM_CONTEXT_MENU Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/page/ContextMenuClient.h ('k') | Source/WebCore/page/ContextMenuController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 ContextMenuClient* client() const { return m_client; } 53 ContextMenuClient* client() const { return m_client; }
54 54
55 ContextMenu* contextMenu() const { return m_contextMenu.get(); } 55 ContextMenu* contextMenu() const { return m_contextMenu.get(); }
56 void clearContextMenu(); 56 void clearContextMenu();
57 57
58 void handleContextMenuEvent(Event*); 58 void handleContextMenuEvent(Event*);
59 void showContextMenu(Event*, PassRefPtr<ContextMenuProvider>); 59 void showContextMenu(Event*, PassRefPtr<ContextMenuProvider>);
60 60
61 void populate(); 61 void populate();
62 void contextMenuItemSelected(ContextMenuItem*); 62 void contextMenuItemSelected(const ContextMenuItem*);
63 void addInspectElementItem(); 63 void addInspectElementItem();
64 64
65 void checkOrEnableIfNeeded(ContextMenuItem&) const; 65 void checkOrEnableIfNeeded(ContextMenuItem&) const;
66 66
67 void setHitTestResult(const HitTestResult& result) { m_hitTestResult = r esult; } 67 void setHitTestResult(const HitTestResult& result) { m_hitTestResult = r esult; }
68 const HitTestResult& hitTestResult() { return m_hitTestResult; } 68 const HitTestResult& hitTestResult() { return m_hitTestResult; }
69 69
70 #if USE(ACCESSIBILITY_CONTEXT_MENUS) 70 #if USE(ACCESSIBILITY_CONTEXT_MENUS)
71 void showContextMenuAt(Frame*, const IntPoint& clickPoint); 71 void showContextMenuAt(Frame*, const IntPoint& clickPoint);
72 #endif 72 #endif
(...skipping 19 matching lines...) Expand all
92 ContextMenuClient* m_client; 92 ContextMenuClient* m_client;
93 OwnPtr<ContextMenu> m_contextMenu; 93 OwnPtr<ContextMenu> m_contextMenu;
94 RefPtr<ContextMenuProvider> m_menuProvider; 94 RefPtr<ContextMenuProvider> m_menuProvider;
95 HitTestResult m_hitTestResult; 95 HitTestResult m_hitTestResult;
96 }; 96 };
97 97
98 } 98 }
99 99
100 #endif // ENABLE(CONTEXT_MENUS) 100 #endif // ENABLE(CONTEXT_MENUS)
101 #endif 101 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/page/ContextMenuClient.h ('k') | Source/WebCore/page/ContextMenuController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698