| 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_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_VIEWS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/common/notification_observer.h" | 9 #include "content/common/notification_observer.h" |
| 10 #include "content/common/notification_registrar.h" | 10 #include "content/common/notification_registrar.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Tells the container to update less frequently during resizing operations | 38 // Tells the container to update less frequently during resizing operations |
| 39 // so performance is better. | 39 // so performance is better. |
| 40 void SetFastResize(bool fast_resize); | 40 void SetFastResize(bool fast_resize); |
| 41 | 41 |
| 42 // Updates the current reserved rect in view coordinates where contents | 42 // Updates the current reserved rect in view coordinates where contents |
| 43 // should not be rendered to draw the resize corner, sidebar mini tabs etc. | 43 // should not be rendered to draw the resize corner, sidebar mini tabs etc. |
| 44 void SetReservedContentsRect(const gfx::Rect& reserved_rect); | 44 void SetReservedContentsRect(const gfx::Rect& reserved_rect); |
| 45 | 45 |
| 46 // Overridden from NotificationObserver: | 46 // Overridden from NotificationObserver: |
| 47 virtual void Observe(NotificationType type, | 47 virtual void Observe(int type, |
| 48 const NotificationSource& source, | 48 const NotificationSource& source, |
| 49 const NotificationDetails& details) OVERRIDE; | 49 const NotificationDetails& details) OVERRIDE; |
| 50 | 50 |
| 51 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 51 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 52 | 52 |
| 53 // Overridden from views::View. | 53 // Overridden from views::View. |
| 54 virtual std::string GetClassName() const OVERRIDE; | 54 virtual std::string GetClassName() const OVERRIDE; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 // Add or remove observers for events that we care about. | 57 // Add or remove observers for events that we care about. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 79 | 79 |
| 80 // The current reserved rect in view coordinates where contents should not be | 80 // The current reserved rect in view coordinates where contents should not be |
| 81 // rendered to draw the resize corner, sidebar mini tabs etc. | 81 // rendered to draw the resize corner, sidebar mini tabs etc. |
| 82 // Cached here to update ever changing renderers. | 82 // Cached here to update ever changing renderers. |
| 83 gfx::Rect cached_reserved_rect_; | 83 gfx::Rect cached_reserved_rect_; |
| 84 | 84 |
| 85 DISALLOW_COPY_AND_ASSIGN(TabContentsContainer); | 85 DISALLOW_COPY_AND_ASSIGN(TabContentsContainer); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_VIEWS_H_ | 88 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_VIEWS_H_ |
| OLD | NEW |