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_TAB_CONTENTS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container.h" | 9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 content::WebContents* web_contents(); | 34 content::WebContents* web_contents(); |
35 | 35 |
36 // Called by the BrowserView to notify that |contents| got the focus. | 36 // Called by the BrowserView to notify that |contents| got the focus. |
37 void WebContentsFocused(content::WebContents* contents); | 37 void WebContentsFocused(content::WebContents* contents); |
38 | 38 |
39 // Tells the container to update less frequently during resizing operations | 39 // Tells the container to update less frequently during resizing operations |
40 // so performance is better. | 40 // so performance is better. |
41 void SetFastResize(bool fast_resize); | 41 void SetFastResize(bool fast_resize); |
42 | 42 |
43 // Updates the current reserved rect in view coordinates where contents | 43 // Updates the current reserved rect in view coordinates where contents |
44 // should not be rendered to draw the resize corner, sidebar mini tabs etc. | 44 // should not be rendered to draw the resize corner, etc. |
45 void SetReservedContentsRect(const gfx::Rect& reserved_rect); | 45 void SetReservedContentsRect(const gfx::Rect& reserved_rect); |
46 | 46 |
47 // Overridden from content::NotificationObserver: | 47 // Overridden from content::NotificationObserver: |
48 virtual void Observe(int type, | 48 virtual void Observe(int type, |
49 const content::NotificationSource& source, | 49 const content::NotificationSource& source, |
50 const content::NotificationDetails& details) OVERRIDE; | 50 const content::NotificationDetails& details) OVERRIDE; |
51 | 51 |
52 // Overridden from views::View: | 52 // Overridden from views::View: |
53 virtual void Layout() OVERRIDE; | 53 virtual void Layout() OVERRIDE; |
54 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 54 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
(...skipping 28 matching lines...) Expand all Loading... |
83 // view handle associated with the attached TabContents. | 83 // view handle associated with the attached TabContents. |
84 NativeTabContentsContainer* native_container_; | 84 NativeTabContentsContainer* native_container_; |
85 | 85 |
86 // The attached WebContents. | 86 // The attached WebContents. |
87 content::WebContents* web_contents_; | 87 content::WebContents* web_contents_; |
88 | 88 |
89 // Handles registering for our notifications. | 89 // Handles registering for our notifications. |
90 content::NotificationRegistrar registrar_; | 90 content::NotificationRegistrar registrar_; |
91 | 91 |
92 // The current reserved rect in view coordinates where contents should not be | 92 // The current reserved rect in view coordinates where contents should not be |
93 // rendered to draw the resize corner, sidebar mini tabs etc. | 93 // rendered to draw the resize corner, etc. |
94 // Cached here to update ever changing renderers. | 94 // Cached here to update ever changing renderers. |
95 gfx::Rect cached_reserved_rect_; | 95 gfx::Rect cached_reserved_rect_; |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(TabContentsContainer); | 97 DISALLOW_COPY_AND_ASSIGN(TabContentsContainer); |
98 }; | 98 }; |
99 | 99 |
100 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ | 100 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ |
OLD | NEW |