| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 class RenderViewHost; | 9 class RenderViewHost; |
| 10 class TabContents; | 10 class TabContents; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 // Attaches the new TabContents to the native container. | 24 // Attaches the new TabContents to the native container. |
| 25 virtual void AttachContents(TabContents* contents) = 0; | 25 virtual void AttachContents(TabContents* contents) = 0; |
| 26 | 26 |
| 27 // Detaches the old TabContents from the native container. | 27 // Detaches the old TabContents from the native container. |
| 28 virtual void DetachContents(TabContents* contents) = 0; | 28 virtual void DetachContents(TabContents* contents) = 0; |
| 29 | 29 |
| 30 // Tells the container to update less frequently during resizing operations | 30 // Tells the container to update less frequently during resizing operations |
| 31 // so performance is better. | 31 // so performance is better. |
| 32 virtual void SetFastResize(bool fast_resize) = 0; | 32 virtual void SetFastResize(bool fast_resize) = 0; |
| 33 virtual bool GetFastResize() const = 0; |
| 34 |
| 35 // Returns the value of GetFastResize() the last time layout occurred. |
| 36 virtual bool FastResizeAtLastLayout() const = 0; |
| 33 | 37 |
| 34 // Tells the container that the RenderViewHost for the attached TabContents | 38 // Tells the container that the RenderViewHost for the attached TabContents |
| 35 // has changed and it should update focus. | 39 // has changed and it should update focus. |
| 36 virtual void RenderViewHostChanged(RenderViewHost* old_host, | 40 virtual void RenderViewHostChanged(RenderViewHost* old_host, |
| 37 RenderViewHost* new_host) = 0; | 41 RenderViewHost* new_host) = 0; |
| 38 | 42 |
| 39 // Tells the container that |tab_contents| got the focus. | 43 // Tells the container that |tab_contents| got the focus. |
| 40 virtual void TabContentsFocused(TabContents* tab_contents) = 0; | 44 virtual void TabContentsFocused(TabContents* tab_contents) = 0; |
| 41 | 45 |
| 42 // Retrieves the views::View that hosts the TabContents. | 46 // Retrieves the views::View that hosts the TabContents. |
| 43 virtual views::View* GetView() = 0; | 47 virtual views::View* GetView() = 0; |
| 48 |
| 44 protected: | 49 protected: |
| 45 virtual ~NativeTabContentsContainer() {} | 50 virtual ~NativeTabContentsContainer() {} |
| 46 }; | 51 }; |
| 47 | 52 |
| 48 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_ | 53 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_ |
| OLD | NEW |