| 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 24 matching lines...) Expand all Loading... |
| 35 ExtensionHost* host() const { return host_; } | 35 ExtensionHost* host() const { return host_; } |
| 36 Browser* browser() const { return browser_; } | 36 Browser* browser() const { return browser_; } |
| 37 Extension* extension() const; | 37 Extension* extension() const; |
| 38 RenderViewHost* render_view_host() const; | 38 RenderViewHost* render_view_host() const; |
| 39 void SetDidInsertCSS(bool did_insert); | 39 void SetDidInsertCSS(bool did_insert); |
| 40 void set_is_clipped(bool is_clipped) { is_clipped_ = is_clipped; } | 40 void set_is_clipped(bool is_clipped) { is_clipped_ = is_clipped; } |
| 41 bool is_toolstrip() const { return is_toolstrip_; } | 41 bool is_toolstrip() const { return is_toolstrip_; } |
| 42 void set_is_toolstrip(bool is) { is_toolstrip_ = is; } | 42 void set_is_toolstrip(bool is) { is_toolstrip_ = is; } |
| 43 | 43 |
| 44 // Notification from ExtensionHost. | 44 // Notification from ExtensionHost. |
| 45 void DidContentsPreferredWidthChange(const int pref_width); | 45 void UpdatePreferredWidth(int pref_width); |
| 46 void HandleMouseEvent(); | 46 void HandleMouseEvent(); |
| 47 void HandleMouseLeave(); | 47 void HandleMouseLeave(); |
| 48 | 48 |
| 49 // Set a custom background for the view. The background will be tiled. | 49 // Set a custom background for the view. The background will be tiled. |
| 50 void SetBackground(const SkBitmap& background); | 50 void SetBackground(const SkBitmap& background); |
| 51 | 51 |
| 52 // Sets the container for this view. | 52 // Sets the container for this view. |
| 53 void SetContainer(ExtensionContainer* container) { container_ = container; } | 53 void SetContainer(ExtensionContainer* container) { container_ = container; } |
| 54 | 54 |
| 55 // Overridden from views::NativeViewHost: | 55 // Overridden from views::NativeViewHost: |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Whether this extension view is clipped. | 104 // Whether this extension view is clipped. |
| 105 bool is_clipped_; | 105 bool is_clipped_; |
| 106 | 106 |
| 107 // Whether this view is currently displaying in toolstrip mode. | 107 // Whether this view is currently displaying in toolstrip mode. |
| 108 bool is_toolstrip_; | 108 bool is_toolstrip_; |
| 109 | 109 |
| 110 DISALLOW_COPY_AND_ASSIGN(ExtensionView); | 110 DISALLOW_COPY_AND_ASSIGN(ExtensionView); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 #endif // CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ | 113 #endif // CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ |
| OLD | NEW |