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 CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "content/public/browser/native_web_keyboard_event.h" | 10 #include "content/public/browser/native_web_keyboard_event.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 public: | 28 public: |
29 virtual ~Container() {} | 29 virtual ~Container() {} |
30 | 30 |
31 virtual void OnExtensionSizeChanged(ExtensionViewViews* view) {} | 31 virtual void OnExtensionSizeChanged(ExtensionViewViews* view) {} |
32 }; | 32 }; |
33 | 33 |
34 ExtensionViewViews(extensions::ExtensionHost* host, Browser* browser); | 34 ExtensionViewViews(extensions::ExtensionHost* host, Browser* browser); |
35 virtual ~ExtensionViewViews(); | 35 virtual ~ExtensionViewViews(); |
36 | 36 |
37 // views::NativeViewHost: | 37 // views::NativeViewHost: |
38 virtual gfx::Size GetMinimumSize() OVERRIDE; | 38 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
39 virtual void SetVisible(bool is_visible) OVERRIDE; | 39 virtual void SetVisible(bool is_visible) OVERRIDE; |
40 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; | 40 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; |
41 virtual void ViewHierarchyChanged( | 41 virtual void ViewHierarchyChanged( |
42 const ViewHierarchyChangedDetails& details) OVERRIDE; | 42 const ViewHierarchyChangedDetails& details) OVERRIDE; |
43 | 43 |
44 extensions::ExtensionHost* host() const { return host_; } | 44 extensions::ExtensionHost* host() const { return host_; } |
45 const extensions::Extension* extension() const { return host_->extension(); } | 45 const extensions::Extension* extension() const { return host_->extension(); } |
46 content::RenderViewHost* render_view_host() const { | 46 content::RenderViewHost* render_view_host() const { |
47 return host_->render_view_host(); | 47 return host_->render_view_host(); |
48 } | 48 } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 bool is_clipped_; | 107 bool is_clipped_; |
108 | 108 |
109 // A handler to handle unhandled keyboard messages coming back from the | 109 // A handler to handle unhandled keyboard messages coming back from the |
110 // renderer process. | 110 // renderer process. |
111 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 111 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
112 | 112 |
113 DISALLOW_COPY_AND_ASSIGN(ExtensionViewViews); | 113 DISALLOW_COPY_AND_ASSIGN(ExtensionViewViews); |
114 }; | 114 }; |
115 | 115 |
116 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ | 116 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ |
OLD | NEW |