| 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 20 matching lines...) Expand all Loading... |
| 31 TabContents* tab_contents() const { return tab_contents_; } | 31 TabContents* tab_contents() const { return tab_contents_; } |
| 32 | 32 |
| 33 // Called by the BrowserView to notify that |tab_contents| got the focus. | 33 // Called by the BrowserView to notify that |tab_contents| got the focus. |
| 34 void TabContentsFocused(TabContents* tab_contents); | 34 void TabContentsFocused(TabContents* tab_contents); |
| 35 | 35 |
| 36 // Tells the container to update less frequently during resizing operations | 36 // Tells the container to update less frequently during resizing operations |
| 37 // so performance is better. | 37 // so performance is better. |
| 38 void SetFastResize(bool fast_resize); | 38 void SetFastResize(bool fast_resize); |
| 39 | 39 |
| 40 // Updates the current reserved rect in view coordinates where contents | 40 // Updates the current reserved rect in view coordinates where contents |
| 41 // should not be rendered to draw the resize corner, sidebar mini tabs etc. | 41 // should not be rendered to draw the resize corner, etc. |
| 42 void SetReservedContentsRect(const gfx::Rect& reserved_rect); | 42 void SetReservedContentsRect(const gfx::Rect& reserved_rect); |
| 43 | 43 |
| 44 // Overridden from content::NotificationObserver: | 44 // Overridden from content::NotificationObserver: |
| 45 virtual void Observe(int type, | 45 virtual void Observe(int type, |
| 46 const content::NotificationSource& source, | 46 const content::NotificationSource& source, |
| 47 const content::NotificationDetails& details) OVERRIDE; | 47 const content::NotificationDetails& details) OVERRIDE; |
| 48 | 48 |
| 49 // Overridden from views::View: | 49 // Overridden from views::View: |
| 50 virtual void Layout() OVERRIDE; | 50 virtual void Layout() OVERRIDE; |
| 51 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 51 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 80 // view handle associated with the attached TabContents. | 80 // view handle associated with the attached TabContents. |
| 81 NativeTabContentsContainer* native_container_; | 81 NativeTabContentsContainer* native_container_; |
| 82 | 82 |
| 83 // The attached TabContents. | 83 // The attached TabContents. |
| 84 TabContents* tab_contents_; | 84 TabContents* tab_contents_; |
| 85 | 85 |
| 86 // Handles registering for our notifications. | 86 // Handles registering for our notifications. |
| 87 content::NotificationRegistrar registrar_; | 87 content::NotificationRegistrar registrar_; |
| 88 | 88 |
| 89 // The current reserved rect in view coordinates where contents should not be | 89 // The current reserved rect in view coordinates where contents should not be |
| 90 // rendered to draw the resize corner, sidebar mini tabs etc. | 90 // rendered to draw the resize corner, etc. |
| 91 // Cached here to update ever changing renderers. | 91 // Cached here to update ever changing renderers. |
| 92 gfx::Rect cached_reserved_rect_; | 92 gfx::Rect cached_reserved_rect_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(TabContentsContainer); | 94 DISALLOW_COPY_AND_ASSIGN(TabContentsContainer); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ | 97 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ |
| OLD | NEW |