OLD | NEW |
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" | |
12 | 11 |
13 #if defined(TOOLKIT_GTK) | 12 #if defined(TOOLKIT_GTK) |
14 #include "ui/base/gtk/gtk_signal.h" | 13 #include "ui/base/gtk/gtk_signal.h" |
15 #include "ui/base/gtk/owned_widget_gtk.h" | 14 #include "ui/base/gtk/owned_widget_gtk.h" |
16 #endif | 15 #endif |
17 | 16 |
18 namespace content { | 17 namespace content { |
19 | 18 |
20 class ShellWebContentsViewDelegate : public WebContentsViewDelegate { | 19 class ShellWebContentsViewDelegate : public WebContentsViewDelegate { |
21 public: | 20 public: |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void, | 74 CHROMEGTK_CALLBACK_0(ShellWebContentsViewDelegate, void, |
76 OnInspectMenuActivated); | 75 OnInspectMenuActivated); |
77 #endif | 76 #endif |
78 | 77 |
79 DISALLOW_COPY_AND_ASSIGN(ShellWebContentsViewDelegate); | 78 DISALLOW_COPY_AND_ASSIGN(ShellWebContentsViewDelegate); |
80 }; | 79 }; |
81 | 80 |
82 } // namespace content | 81 } // namespace content |
83 | 82 |
84 #endif // CONTENT_SHELL_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_ | 83 #endif // CONTENT_SHELL_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_ |
OLD | NEW |