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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu_gtk.cc

Issue 4710001: Split out command IDs from chrome_dll_resource.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/tab_contents/render_view_context_menu_gtk.h" 5 #include "chrome/browser/tab_contents/render_view_context_menu_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/app/chrome_dll_resource.h" 10 #include "chrome/app/chrome_command_ids.h"
11 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" 11 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
12 #include "chrome/browser/tab_contents/tab_contents.h" 12 #include "chrome/browser/tab_contents/tab_contents.h"
13 #include "webkit/glue/context_menu.h" 13 #include "webkit/glue/context_menu.h"
14 14
15 RenderViewContextMenuGtk::RenderViewContextMenuGtk( 15 RenderViewContextMenuGtk::RenderViewContextMenuGtk(
16 TabContents* web_contents, 16 TabContents* web_contents,
17 const ContextMenuParams& params, 17 const ContextMenuParams& params,
18 guint32 triggering_event_time) 18 guint32 triggering_event_time)
19 : RenderViewContextMenu(web_contents, params), 19 : RenderViewContextMenu(web_contents, params),
20 triggering_event_time_(triggering_event_time) { 20 triggering_event_time_(triggering_event_time) {
(...skipping 23 matching lines...) Expand all
44 void RenderViewContextMenuGtk::StoppedShowing() { 44 void RenderViewContextMenuGtk::StoppedShowing() {
45 RenderWidgetHostView* rwhv = source_tab_contents_->GetRenderWidgetHostView(); 45 RenderWidgetHostView* rwhv = source_tab_contents_->GetRenderWidgetHostView();
46 if (rwhv) 46 if (rwhv)
47 rwhv->ShowingContextMenu(false); 47 rwhv->ShowingContextMenu(false);
48 } 48 }
49 49
50 bool RenderViewContextMenuGtk::AlwaysShowIconForCmd(int command_id) const { 50 bool RenderViewContextMenuGtk::AlwaysShowIconForCmd(int command_id) const {
51 return command_id >= IDC_EXTENSIONS_CONTEXT_CUSTOM_FIRST && 51 return command_id >= IDC_EXTENSIONS_CONTEXT_CUSTOM_FIRST &&
52 command_id <= IDC_EXTENSIONS_CONTEXT_CUSTOM_LAST; 52 command_id <= IDC_EXTENSIONS_CONTEXT_CUSTOM_LAST;
53 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698