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_GTK_BROWSER_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 const Extension* app); | 124 const Extension* app); |
125 virtual void Cut(); | 125 virtual void Cut(); |
126 virtual void Copy(); | 126 virtual void Copy(); |
127 virtual void Paste(); | 127 virtual void Paste(); |
128 virtual void ToggleTabStripMode() {} | 128 virtual void ToggleTabStripMode() {} |
129 virtual void PrepareForInstant(); | 129 virtual void PrepareForInstant(); |
130 virtual void ShowInstant(TabContents* preview_contents); | 130 virtual void ShowInstant(TabContents* preview_contents); |
131 virtual void HideInstant(bool instant_is_active); | 131 virtual void HideInstant(bool instant_is_active); |
132 virtual gfx::Rect GetInstantBounds(); | 132 virtual gfx::Rect GetInstantBounds(); |
133 | 133 |
134 virtual gfx::Rect GrabWindowSnapshot( | |
135 std::vector<unsigned char>* png_representation); | |
136 | |
137 // Overridden from NotificationObserver: | 134 // Overridden from NotificationObserver: |
138 virtual void Observe(NotificationType type, | 135 virtual void Observe(NotificationType type, |
139 const NotificationSource& source, | 136 const NotificationSource& source, |
140 const NotificationDetails& details); | 137 const NotificationDetails& details); |
141 | 138 |
142 // Overridden from TabStripModelObserver: | 139 // Overridden from TabStripModelObserver: |
143 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); | 140 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); |
144 virtual void TabSelectedAt(TabContentsWrapper* old_contents, | 141 virtual void TabSelectedAt(TabContentsWrapper* old_contents, |
145 TabContentsWrapper* new_contents, | 142 TabContentsWrapper* new_contents, |
146 int index, | 143 int index, |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; | 484 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; |
488 | 485 |
489 // The model that tracks the paint state of the arrow for the infobar | 486 // The model that tracks the paint state of the arrow for the infobar |
490 // directly below the toolbar. | 487 // directly below the toolbar. |
491 InfoBarArrowModel infobar_arrow_model_; | 488 InfoBarArrowModel infobar_arrow_model_; |
492 | 489 |
493 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 490 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
494 }; | 491 }; |
495 | 492 |
496 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 493 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
OLD | NEW |