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_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Overridden from views::NativeViewHost: | 60 // Overridden from views::NativeViewHost: |
61 virtual gfx::NativeCursor GetCursor(const views::MouseEvent& event) OVERRIDE; | 61 virtual gfx::NativeCursor GetCursor(const views::MouseEvent& event) OVERRIDE; |
62 virtual void SetVisible(bool is_visible) OVERRIDE; | 62 virtual void SetVisible(bool is_visible) OVERRIDE; |
63 virtual void ViewHierarchyChanged( | 63 virtual void ViewHierarchyChanged( |
64 bool is_add, views::View *parent, views::View *child) OVERRIDE; | 64 bool is_add, views::View *parent, views::View *child) OVERRIDE; |
65 | 65 |
66 protected: | 66 protected: |
67 // Overridden from views::View. | 67 // Overridden from views::View. |
68 virtual void PreferredSizeChanged() OVERRIDE; | 68 virtual void PreferredSizeChanged() OVERRIDE; |
69 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e) OVERRIDE; | 69 virtual bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) OVERRIDE; |
70 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; | 70 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; |
71 | 71 |
72 private: | 72 private: |
73 friend class extensions::ExtensionHost; | 73 friend class extensions::ExtensionHost; |
74 | 74 |
75 // Initializes the RenderWidgetHostView for this object. | 75 // Initializes the RenderWidgetHostView for this object. |
76 void CreateWidgetHostView(); | 76 void CreateWidgetHostView(); |
77 | 77 |
78 // We wait to show the ExtensionView until several things have loaded. | 78 // We wait to show the ExtensionView until several things have loaded. |
79 void ShowIfCompletelyLoaded(); | 79 void ShowIfCompletelyLoaded(); |
(...skipping 24 matching lines...) Expand all Loading... |
104 // Note: the view does not own its container. | 104 // Note: the view does not own its container. |
105 Container* container_; | 105 Container* container_; |
106 | 106 |
107 // Whether this extension view is clipped. | 107 // Whether this extension view is clipped. |
108 bool is_clipped_; | 108 bool is_clipped_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(ExtensionView); | 110 DISALLOW_COPY_AND_ASSIGN(ExtensionView); |
111 }; | 111 }; |
112 | 112 |
113 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ | 113 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ |
OLD | NEW |