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 UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ |
6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ | 6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
11 #include "content/public/browser/notification_registrar.h" | 11 #include "content/public/browser/notification_registrar.h" |
12 #include "content/public/browser/web_contents.h" | |
13 #include "content/public/browser/web_contents_delegate.h" | 12 #include "content/public/browser/web_contents_delegate.h" |
14 #include "ui/views/controls/webview/webview_export.h" | 13 #include "ui/views/controls/webview/webview_export.h" |
15 #include "ui/views/view.h" | 14 #include "ui/views/view.h" |
16 | 15 |
| 16 namespace content { |
| 17 class SiteInstance; |
| 18 } |
| 19 |
17 namespace views { | 20 namespace views { |
18 | 21 |
19 class NativeViewHost; | 22 class NativeViewHost; |
20 | 23 |
21 class WEBVIEW_EXPORT WebView : public View, | 24 class WEBVIEW_EXPORT WebView : public View, |
22 public content::NotificationObserver, | 25 public content::NotificationObserver, |
23 public content::WebContentsDelegate { | 26 public content::WebContentsDelegate { |
24 public: | 27 public: |
25 static const char kViewClassName[]; | 28 static const char kViewClassName[]; |
26 | 29 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 content::NotificationRegistrar registrar_; | 124 content::NotificationRegistrar registrar_; |
122 bool allow_accelerators_; | 125 bool allow_accelerators_; |
123 gfx::Size preferred_size_; | 126 gfx::Size preferred_size_; |
124 | 127 |
125 DISALLOW_COPY_AND_ASSIGN(WebView); | 128 DISALLOW_COPY_AND_ASSIGN(WebView); |
126 }; | 129 }; |
127 | 130 |
128 } // namespace views | 131 } // namespace views |
129 | 132 |
130 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ | 133 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ |
OLD | NEW |