OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_AEROPEEK_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_AEROPEEK_MANAGER_H_ |
6 #define CHROME_BROWSER_AEROPEEK_MANAGER_H_ | 6 #define CHROME_BROWSER_AEROPEEK_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // Returns whether or not we should enable Tab Thumbnailing and Aero Peek | 105 // Returns whether or not we should enable Tab Thumbnailing and Aero Peek |
106 // of Windows 7. | 106 // of Windows 7. |
107 static bool Enabled(); | 107 static bool Enabled(); |
108 | 108 |
109 // Overridden from TabStripModelObserver: | 109 // Overridden from TabStripModelObserver: |
110 virtual void TabInsertedAt(TabContentsWrapper* contents, | 110 virtual void TabInsertedAt(TabContentsWrapper* contents, |
111 int index, | 111 int index, |
112 bool foreground); | 112 bool foreground); |
113 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); | 113 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); |
114 virtual void TabSelectedAt(TabContentsWrapper* old_contents, | 114 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, |
115 TabContentsWrapper* new_contents, | 115 TabContentsWrapper* new_contents, |
116 int index, | 116 int index, |
117 bool user_gesture); | 117 bool user_gesture); |
118 virtual void TabMoved(TabContentsWrapper* contents, | 118 virtual void TabMoved(TabContentsWrapper* contents, |
119 int from_index, | 119 int from_index, |
120 int to_index, | 120 int to_index, |
121 bool pinned_state_changed); | 121 bool pinned_state_changed); |
122 virtual void TabChangedAt(TabContentsWrapper* contents, | 122 virtual void TabChangedAt(TabContentsWrapper* contents, |
123 int index, | 123 int index, |
124 TabChangeType change_type); | 124 TabChangeType change_type); |
125 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 125 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
126 TabContentsWrapper* old_contents, | 126 TabContentsWrapper* old_contents, |
127 TabContentsWrapper* new_contents, | 127 TabContentsWrapper* new_contents, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // preview image can use transparent colors only in the frame area. | 190 // preview image can use transparent colors only in the frame area. |
191 int toolbar_top_; | 191 int toolbar_top_; |
192 | 192 |
193 // The margins of the "user-perceived content area". | 193 // The margins of the "user-perceived content area". |
194 // This value is used for pasting a tab image onto this "user-perceived | 194 // This value is used for pasting a tab image onto this "user-perceived |
195 // content area" when creating a preview image. | 195 // content area" when creating a preview image. |
196 gfx::Insets content_insets_; | 196 gfx::Insets content_insets_; |
197 }; | 197 }; |
198 | 198 |
199 #endif // CHROME_BROWSER_AEROPEEK_MANAGER_H_ | 199 #endif // CHROME_BROWSER_AEROPEEK_MANAGER_H_ |
OLD | NEW |