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

Side by Side Diff: content/shell/shell_web_contents_view_delegate.h

Issue 10915304: We do not pass enums by conts references. This CL fixes style errors introduced (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_SHELL_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_ 5 #ifndef CONTENT_SHELL_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_
6 #define CONTENT_SHELL_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_ 6 #define CONTENT_SHELL_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_
7 7
8 #include "content/public/browser/web_contents.h" 8 #include "content/public/browser/web_contents.h"
9 #include "content/public/browser/web_contents_view_delegate.h" 9 #include "content/public/browser/web_contents_view_delegate.h"
10 #include "content/public/common/context_menu_params.h" 10 #include "content/public/common/context_menu_params.h"
11 #include "content/public/common/context_menu_source_type.h" 11 #include "content/public/common/context_menu_source_type.h"
12 12
13 #if defined(TOOLKIT_GTK) 13 #if defined(TOOLKIT_GTK)
14 #include "ui/base/gtk/gtk_signal.h" 14 #include "ui/base/gtk/gtk_signal.h"
15 #include "ui/base/gtk/owned_widget_gtk.h" 15 #include "ui/base/gtk/owned_widget_gtk.h"
16 #endif 16 #endif
17 17
18 namespace content { 18 namespace content {
19 19
20 class ShellWebContentsViewDelegate : public WebContentsViewDelegate { 20 class ShellWebContentsViewDelegate : public WebContentsViewDelegate {
21 public: 21 public:
22 explicit ShellWebContentsViewDelegate(WebContents* web_contents); 22 explicit ShellWebContentsViewDelegate(WebContents* web_contents);
23 virtual ~ShellWebContentsViewDelegate(); 23 virtual ~ShellWebContentsViewDelegate();
24 24
25 // Overridden from WebContentsViewDelegate: 25 // Overridden from WebContentsViewDelegate:
26 virtual void ShowContextMenu(const ContextMenuParams& params, 26 virtual void ShowContextMenu(const ContextMenuParams& params,
27 const ContextMenuSourceType& type) OVERRIDE; 27 ContextMenuSourceType type) OVERRIDE;
28 virtual WebDragDestDelegate* GetDragDestDelegate() OVERRIDE; 28 virtual WebDragDestDelegate* GetDragDestDelegate() OVERRIDE;
29 29
30 #if defined(TOOLKIT_GTK) 30 #if defined(TOOLKIT_GTK)
31 virtual void Initialize(GtkWidget* expanded_container, 31 virtual void Initialize(GtkWidget* expanded_container,
32 ui::FocusStoreGtk* focus_store) OVERRIDE; 32 ui::FocusStoreGtk* focus_store) OVERRIDE;
33 virtual gfx::NativeView GetNativeView() const OVERRIDE; 33 virtual gfx::NativeView GetNativeView() const OVERRIDE;
34 virtual void Focus() OVERRIDE; 34 virtual void Focus() OVERRIDE;
35 virtual gboolean OnNativeViewFocusEvent(GtkWidget* widget, 35 virtual gboolean OnNativeViewFocusEvent(GtkWidget* widget,
36 GtkDirectionType type, 36 GtkDirectionType type,
37 gboolean* return_value) OVERRIDE; 37 gboolean* return_value) OVERRIDE;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void, 76 CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void,
77 OnInspectMenuActivated); 77 OnInspectMenuActivated);
78 #endif 78 #endif
79 79
80 DISALLOW_COPY_AND_ASSIGN(ShellWebContentsViewDelegate); 80 DISALLOW_COPY_AND_ASSIGN(ShellWebContentsViewDelegate);
81 }; 81 };
82 82
83 } // namespace content 83 } // namespace content
84 84
85 #endif // CONTENT_SHELL_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_ 85 #endif // CONTENT_SHELL_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_view_delegate.h ('k') | content/shell/shell_web_contents_view_delegate_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698