| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 // Sets the margins of the "user-perceived content area". | 101 // Sets the margins of the "user-perceived content area". |
| 102 // (See comments of |content_insets_|). | 102 // (See comments of |content_insets_|). |
| 103 void SetContentInsets(const gfx::Insets& insets); | 103 void SetContentInsets(const gfx::Insets& insets); |
| 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(TabContents* contents, | 110 virtual void TabInsertedAt(TabContentsWrapper* contents, |
| 111 int index, | 111 int index, |
| 112 bool foreground); | 112 bool foreground); |
| 113 virtual void TabClosingAt(TabStripModel* tab_strip_model, | 113 virtual void TabClosingAt(TabStripModel* tab_strip_model, |
| 114 TabContents* contents, | 114 TabContentsWrapper* contents, |
| 115 int index); | 115 int index); |
| 116 virtual void TabDetachedAt(TabContents* contents, int index); | 116 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); |
| 117 virtual void TabSelectedAt(TabContents* old_contents, | 117 virtual void TabSelectedAt(TabContentsWrapper* old_contents, |
| 118 TabContents* new_contents, | 118 TabContentsWrapper* new_contents, |
| 119 int index, | 119 int index, |
| 120 bool user_gesture); | 120 bool user_gesture); |
| 121 virtual void TabMoved(TabContents* contents, | 121 virtual void TabMoved(TabContentsWrapper* contents, |
| 122 int from_index, | 122 int from_index, |
| 123 int to_index, | 123 int to_index, |
| 124 bool pinned_state_changed); | 124 bool pinned_state_changed); |
| 125 virtual void TabChangedAt(TabContents* contents, | 125 virtual void TabChangedAt(TabContentsWrapper* contents, |
| 126 int index, | 126 int index, |
| 127 TabChangeType change_type); | 127 TabChangeType change_type); |
| 128 | 128 |
| 129 // Overriden from TabThumbnailWindowDelegate: | 129 // Overriden from TabThumbnailWindowDelegate: |
| 130 virtual void CloseTab(int tab_id); | 130 virtual void CloseTab(int tab_id); |
| 131 virtual void ActivateTab(int tab_id); | 131 virtual void ActivateTab(int tab_id); |
| 132 virtual void GetContentInsets(gfx::Insets* insets); | 132 virtual void GetContentInsets(gfx::Insets* insets); |
| 133 virtual bool GetTabThumbnail(int tab_id, SkBitmap* thumbnail); | 133 virtual bool GetTabThumbnail(int tab_id, SkBitmap* thumbnail); |
| 134 virtual bool GetTabPreview(int tab_id, SkBitmap* preview); | 134 virtual bool GetTabPreview(int tab_id, SkBitmap* preview); |
| 135 | 135 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // preview image can use transparent colors only in the frame area. | 180 // preview image can use transparent colors only in the frame area. |
| 181 int toolbar_top_; | 181 int toolbar_top_; |
| 182 | 182 |
| 183 // The margins of the "user-perceived content area". | 183 // The margins of the "user-perceived content area". |
| 184 // This value is used for pasting a tab image onto this "user-perceived | 184 // This value is used for pasting a tab image onto this "user-perceived |
| 185 // content area" when creating a preview image. | 185 // content area" when creating a preview image. |
| 186 gfx::Insets content_insets_; | 186 gfx::Insets content_insets_; |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 #endif // CHROME_BROWSER_AEROPEEK_MANAGER_H_ | 189 #endif // CHROME_BROWSER_AEROPEEK_MANAGER_H_ |
| OLD | NEW |