| 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_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; | |
| 10 class TabContentsContainer; | 9 class TabContentsContainer; |
| 11 | 10 |
| 12 namespace content { | 11 namespace content { |
| 12 class RenderViewHost; |
| 13 class WebContents; | 13 class WebContents; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace views { | 16 namespace views { |
| 17 class View; | 17 class View; |
| 18 } | 18 } |
| 19 | 19 |
| 20 // An interface that the TabContentsContainer uses to talk to a platform- | 20 // An interface that the TabContentsContainer uses to talk to a platform- |
| 21 // specific view that hosts the native handle of the WebContents' view. | 21 // specific view that hosts the native handle of the WebContents' view. |
| 22 class NativeTabContentsContainer { | 22 class NativeTabContentsContainer { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 34 // Tells the container to update less frequently during resizing operations | 34 // Tells the container to update less frequently during resizing operations |
| 35 // so performance is better. | 35 // so performance is better. |
| 36 virtual void SetFastResize(bool fast_resize) = 0; | 36 virtual void SetFastResize(bool fast_resize) = 0; |
| 37 virtual bool GetFastResize() const = 0; | 37 virtual bool GetFastResize() const = 0; |
| 38 | 38 |
| 39 // Returns the value of GetFastResize() the last time layout occurred. | 39 // Returns the value of GetFastResize() the last time layout occurred. |
| 40 virtual bool FastResizeAtLastLayout() const = 0; | 40 virtual bool FastResizeAtLastLayout() const = 0; |
| 41 | 41 |
| 42 // Tells the container that the RenderViewHost for the attached WebContents | 42 // Tells the container that the RenderViewHost for the attached WebContents |
| 43 // has changed and it should update focus. | 43 // has changed and it should update focus. |
| 44 virtual void RenderViewHostChanged(RenderViewHost* old_host, | 44 virtual void RenderViewHostChanged(content::RenderViewHost* old_host, |
| 45 RenderViewHost* new_host) = 0; | 45 content::RenderViewHost* new_host) = 0; |
| 46 | 46 |
| 47 // Tells the container that |contents| got the focus. | 47 // Tells the container that |contents| got the focus. |
| 48 virtual void WebContentsFocused(content::WebContents* contents) = 0; | 48 virtual void WebContentsFocused(content::WebContents* contents) = 0; |
| 49 | 49 |
| 50 // Retrieves the views::View that hosts the TabContents. | 50 // Retrieves the views::View that hosts the TabContents. |
| 51 virtual views::View* GetView() = 0; | 51 virtual views::View* GetView() = 0; |
| 52 | 52 |
| 53 protected: | 53 protected: |
| 54 virtual ~NativeTabContentsContainer() {} | 54 virtual ~NativeTabContentsContainer() {} |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_ | 57 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_ |
| OLD | NEW |