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_EXAMPLES_WEBVIEW_EXAMPLE_H_ | 5 #ifndef UI_VIEWS_EXAMPLES_WEBVIEW_EXAMPLE_H_ |
6 #define UI_VIEWS_EXAMPLES_WEBVIEW_EXAMPLE_H_ | 6 #define UI_VIEWS_EXAMPLES_WEBVIEW_EXAMPLE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/views/examples/example_base.h" | 9 #include "ui/views/examples/example_base.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 class BrowserContext; | 12 class BrowserContext; |
13 } | 13 } |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 class WebView; | 16 class WebView; |
17 | 17 |
18 namespace examples { | 18 namespace examples { |
19 | 19 |
20 class WebViewExample : public ExampleBase { | 20 class WebViewExample : public ExampleBase { |
21 public: | 21 public: |
22 explicit WebViewExample(content::BrowserContext* browser_context); | 22 explicit WebViewExample(content::BrowserContext* browser_context); |
23 virtual ~WebViewExample(); | 23 virtual ~WebViewExample(); |
24 | 24 |
25 // ExampleBase: | 25 // ExampleBase: |
26 virtual void CreateExampleView(View* container) OVERRIDE; | 26 virtual void CreateExampleView(View* container) override; |
27 | 27 |
28 private: | 28 private: |
29 WebView* webview_; | 29 WebView* webview_; |
30 content::BrowserContext* browser_context_; | 30 content::BrowserContext* browser_context_; |
31 | 31 |
32 DISALLOW_COPY_AND_ASSIGN(WebViewExample); | 32 DISALLOW_COPY_AND_ASSIGN(WebViewExample); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace examples | 35 } // namespace examples |
36 } // namespace views | 36 } // namespace views |
37 | 37 |
38 #endif // UI_VIEWS_EXAMPLES_WEBVIEW_EXAMPLE_H_ | 38 #endif // UI_VIEWS_EXAMPLES_WEBVIEW_EXAMPLE_H_ |
OLD | NEW |