| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 22 matching lines...) Expand all Loading... |
| 33 class ExtensionKeybindingRegistryGtk; | 33 class ExtensionKeybindingRegistryGtk; |
| 34 class FindBarGtk; | 34 class FindBarGtk; |
| 35 class FullscreenExitBubbleGtk; | 35 class FullscreenExitBubbleGtk; |
| 36 class GlobalMenuBar; | 36 class GlobalMenuBar; |
| 37 class InfoBarContainerGtk; | 37 class InfoBarContainerGtk; |
| 38 class LocationBar; | 38 class LocationBar; |
| 39 class StatusBubbleGtk; | 39 class StatusBubbleGtk; |
| 40 class TabContentsContainerGtk; | 40 class TabContentsContainerGtk; |
| 41 class TabStripGtk; | 41 class TabStripGtk; |
| 42 | 42 |
| 43 namespace autofill { |
| 44 class PasswordGenerator; |
| 45 } |
| 46 |
| 43 namespace extensions { | 47 namespace extensions { |
| 44 class Extension; | 48 class Extension; |
| 45 } | 49 } |
| 46 | 50 |
| 47 // An implementation of BrowserWindow for GTK. | 51 // An implementation of BrowserWindow for GTK. |
| 48 // Cross-platform code will interact with this object when | 52 // Cross-platform code will interact with this object when |
| 49 // it needs to manipulate the window. | 53 // it needs to manipulate the window. |
| 50 | 54 |
| 51 class BrowserWindowGtk : public BrowserWindow, | 55 class BrowserWindowGtk : public BrowserWindow, |
| 52 public content::NotificationObserver, | 56 public content::NotificationObserver, |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 virtual void Paste() OVERRIDE; | 167 virtual void Paste() OVERRIDE; |
| 164 virtual void ShowInstant(TabContentsWrapper* preview) OVERRIDE; | 168 virtual void ShowInstant(TabContentsWrapper* preview) OVERRIDE; |
| 165 virtual void HideInstant() OVERRIDE; | 169 virtual void HideInstant() OVERRIDE; |
| 166 virtual gfx::Rect GetInstantBounds() OVERRIDE; | 170 virtual gfx::Rect GetInstantBounds() OVERRIDE; |
| 167 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 171 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
| 168 const gfx::Rect& bounds) OVERRIDE; | 172 const gfx::Rect& bounds) OVERRIDE; |
| 169 virtual FindBar* CreateFindBar() OVERRIDE; | 173 virtual FindBar* CreateFindBar() OVERRIDE; |
| 170 virtual void ShowAvatarBubble(content::WebContents* web_contents, | 174 virtual void ShowAvatarBubble(content::WebContents* web_contents, |
| 171 const gfx::Rect& rect) OVERRIDE; | 175 const gfx::Rect& rect) OVERRIDE; |
| 172 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE; | 176 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE; |
| 173 virtual void ShowPasswordGenerationBubble(const gfx::Rect& rect) OVERRIDE; | 177 virtual void ShowPasswordGenerationBubble( |
| 178 const gfx::Rect& rect, |
| 179 autofill::PasswordGenerator* password_generator) OVERRIDE; |
| 174 | 180 |
| 175 // Overridden from NotificationObserver: | 181 // Overridden from NotificationObserver: |
| 176 virtual void Observe(int type, | 182 virtual void Observe(int type, |
| 177 const content::NotificationSource& source, | 183 const content::NotificationSource& source, |
| 178 const content::NotificationDetails& details) OVERRIDE; | 184 const content::NotificationDetails& details) OVERRIDE; |
| 179 | 185 |
| 180 // Overridden from TabStripModelObserver: | 186 // Overridden from TabStripModelObserver: |
| 181 virtual void TabDetachedAt(TabContentsWrapper* contents, int index) OVERRIDE; | 187 virtual void TabDetachedAt(TabContentsWrapper* contents, int index) OVERRIDE; |
| 182 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, | 188 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, |
| 183 TabContentsWrapper* new_contents, | 189 TabContentsWrapper* new_contents, |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; | 573 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; |
| 568 | 574 |
| 569 FullscreenExitBubbleType fullscreen_exit_bubble_type_; | 575 FullscreenExitBubbleType fullscreen_exit_bubble_type_; |
| 570 | 576 |
| 571 content::NotificationRegistrar registrar_; | 577 content::NotificationRegistrar registrar_; |
| 572 | 578 |
| 573 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 579 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
| 574 }; | 580 }; |
| 575 | 581 |
| 576 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 582 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |