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

Side by Side Diff: Source/WebCore/inspector/InspectorFrontendHost.cpp

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 | « no previous file | Source/WebCore/loader/EmptyClients.h » ('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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 { 82 {
83 contextMenuCleared(); 83 contextMenuCleared();
84 } 84 }
85 85
86 virtual void populateContextMenu(ContextMenu* menu) 86 virtual void populateContextMenu(ContextMenu* menu)
87 { 87 {
88 for (size_t i = 0; i < m_items.size(); ++i) 88 for (size_t i = 0; i < m_items.size(); ++i)
89 menu->appendItem(m_items[i]); 89 menu->appendItem(m_items[i]);
90 } 90 }
91 91
92 virtual void contextMenuItemSelected(ContextMenuItem* item) 92 virtual void contextMenuItemSelected(const ContextMenuItem* item)
93 { 93 {
94 if (m_frontendHost) { 94 if (m_frontendHost) {
95 UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGes ture); 95 UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGes ture);
96 int itemNumber = item->action() - ContextMenuItemBaseCustomTag; 96 int itemNumber = item->action() - ContextMenuItemBaseCustomTag;
97 97
98 ScriptFunctionCall function(m_frontendApiObject, "contextMenuItemSel ected"); 98 ScriptFunctionCall function(m_frontendApiObject, "contextMenuItemSel ected");
99 function.appendArgument(itemNumber); 99 function.appendArgument(itemNumber);
100 function.call(); 100 function.call();
101 } 101 }
102 } 102 }
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 { 325 {
326 return false; 326 return false;
327 } 327 }
328 328
329 String InspectorFrontendHost::hiddenPanels() 329 String InspectorFrontendHost::hiddenPanels()
330 { 330 {
331 return ""; 331 return "";
332 } 332 }
333 333
334 } // namespace WebCore 334 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698