| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 public: | 22 public: |
| 23 ExtensionView(ExtensionHost* host, Browser* browser); | 23 ExtensionView(ExtensionHost* host, Browser* browser); |
| 24 virtual ~ExtensionView(); | 24 virtual ~ExtensionView(); |
| 25 | 25 |
| 26 // A class that represents the container that this view is in. | 26 // A class that represents the container that this view is in. |
| 27 // (bottom shelf, side bar, etc.) | 27 // (bottom shelf, side bar, etc.) |
| 28 class Container { | 28 class Container { |
| 29 public: | 29 public: |
| 30 virtual ~Container() {} | 30 virtual ~Container() {} |
| 31 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view) {} | 31 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view) {} |
| 32 virtual void OnViewWasResized() {} |
| 32 }; | 33 }; |
| 33 | 34 |
| 34 ExtensionHost* host() const { return host_; } | 35 ExtensionHost* host() const { return host_; } |
| 35 Browser* browser() const { return browser_; } | 36 Browser* browser() const { return browser_; } |
| 36 const Extension* extension() const; | 37 const Extension* extension() const; |
| 37 RenderViewHost* render_view_host() const; | 38 RenderViewHost* render_view_host() const; |
| 38 void DidStopLoading(); | 39 void DidStopLoading(); |
| 39 void SetIsClipped(bool is_clipped); | 40 void SetIsClipped(bool is_clipped); |
| 40 | 41 |
| 41 // Notification from ExtensionHost. | 42 // Notification from ExtensionHost. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // Note: the view does not own its container. | 99 // Note: the view does not own its container. |
| 99 Container* container_; | 100 Container* container_; |
| 100 | 101 |
| 101 // Whether this extension view is clipped. | 102 // Whether this extension view is clipped. |
| 102 bool is_clipped_; | 103 bool is_clipped_; |
| 103 | 104 |
| 104 DISALLOW_COPY_AND_ASSIGN(ExtensionView); | 105 DISALLOW_COPY_AND_ASSIGN(ExtensionView); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ | 108 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_H_ |
| OLD | NEW |