| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Overridden from views::NativeViewHost: | 59 // Overridden from views::NativeViewHost: |
| 60 virtual void SetVisible(bool is_visible); | 60 virtual void SetVisible(bool is_visible); |
| 61 virtual void DidChangeBounds(const gfx::Rect& previous, | 61 virtual void DidChangeBounds(const gfx::Rect& previous, |
| 62 const gfx::Rect& current); | 62 const gfx::Rect& current); |
| 63 virtual void ViewHierarchyChanged(bool is_add, | 63 virtual void ViewHierarchyChanged(bool is_add, |
| 64 views::View *parent, views::View *child); | 64 views::View *parent, views::View *child); |
| 65 | 65 |
| 66 protected: | 66 protected: |
| 67 // Overridden from views::View. | 67 // Overridden from views::View. |
| 68 virtual void PreferredSizeChanged(); | 68 virtual void PreferredSizeChanged(); |
| 69 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e); |
| 69 | 70 |
| 70 private: | 71 private: |
| 71 friend class ExtensionHost; | 72 friend class ExtensionHost; |
| 72 | 73 |
| 73 // Initializes the RenderWidgetHostView for this object. | 74 // Initializes the RenderWidgetHostView for this object. |
| 74 void CreateWidgetHostView(); | 75 void CreateWidgetHostView(); |
| 75 | 76 |
| 76 // We wait to show the ExtensionView until several things have loaded. | 77 // We wait to show the ExtensionView until several things have loaded. |
| 77 void ShowIfCompletelyLoaded(); | 78 void ShowIfCompletelyLoaded(); |
| 78 | 79 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 102 // Note: the view does not own its container. | 103 // Note: the view does not own its container. |
| 103 Container* container_; | 104 Container* container_; |
| 104 | 105 |
| 105 // Whether this extension view is clipped. | 106 // Whether this extension view is clipped. |
| 106 bool is_clipped_; | 107 bool is_clipped_; |
| 107 | 108 |
| 108 DISALLOW_COPY_AND_ASSIGN(ExtensionView); | 109 DISALLOW_COPY_AND_ASSIGN(ExtensionView); |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 #endif // CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ | 112 #endif // CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ |
| OLD | NEW |