• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #ifndef UI_VIEWS_EXAMPLES_WEBVIEW_EXAMPLE_H_
6 #define UI_VIEWS_EXAMPLES_WEBVIEW_EXAMPLE_H_
7 
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/views/examples/example_base.h"
11 
12 namespace content {
13 class BrowserContext;
14 }
15 
16 namespace views {
17 class WebView;
18 
19 namespace examples {
20 
21 class WebViewExample : public ExampleBase {
22  public:
23   explicit WebViewExample(content::BrowserContext* browser_context);
24   virtual ~WebViewExample();
25 
26   // Overridden from ExampleBase:
27   virtual void CreateExampleView(View* container) OVERRIDE;
28 
29  private:
30   WebView* webview_;
31   content::BrowserContext* browser_context_;
32 
33   DISALLOW_COPY_AND_ASSIGN(WebViewExample);
34 };
35 
36 }  // namespace examples
37 }  // namespace views
38 
39 #endif  // UI_VIEWS_EXAMPLES_WEBVIEW_EXAMPLE_H_
40