OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_WINDOW_GTK_H_ |
| 6 #define CHROME_BROWSER_WINDOW_GTK_H_ |
| 7 |
| 8 #include "base/scoped_ptr.h" |
| 9 #include "chrome/browser/browser_window.h" |
| 10 |
| 11 typedef struct _GtkWindow GtkWindow; |
| 12 typedef struct _GtkWidget GtkWidget; |
| 13 |
| 14 class BrowserToolbarGtk; |
| 15 |
| 16 // An implementation of BrowserWindow for GTK. |
| 17 // Cross-platform code will interact with this object when |
| 18 // it needs to manipulate the window. |
| 19 |
| 20 class BrowserWindowGtk : public BrowserWindow { |
| 21 public: |
| 22 explicit BrowserWindowGtk(Browser* browser); |
| 23 virtual ~BrowserWindowGtk(); |
| 24 |
| 25 // Overridden from BrowserWindow |
| 26 virtual void Init(); |
| 27 virtual void Show(); |
| 28 virtual void SetBounds(const gfx::Rect& bounds); |
| 29 virtual void Close(); |
| 30 virtual void Activate(); |
| 31 virtual void FlashFrame(); |
| 32 virtual void* GetNativeHandle(); |
| 33 virtual BrowserWindowTesting* GetBrowserWindowTesting(); |
| 34 virtual StatusBubble* GetStatusBubble(); |
| 35 virtual void SelectedTabToolbarSizeChanged(bool is_animating); |
| 36 virtual void UpdateTitleBar(); |
| 37 virtual void UpdateLoadingAnimations(bool should_animate); |
| 38 virtual void SetStarredState(bool is_starred); |
| 39 virtual gfx::Rect GetNormalBounds() const; |
| 40 virtual bool IsMaximized(); |
| 41 virtual LocationBar* GetLocationBar() const; |
| 42 virtual void UpdateStopGoState(bool is_loading); |
| 43 virtual void UpdateToolbar(TabContents* contents, |
| 44 bool should_restore_state); |
| 45 virtual void FocusToolbar(); |
| 46 virtual bool IsBookmarkBarVisible() const; |
| 47 virtual void ToggleBookmarkBar(); |
| 48 virtual void ShowAboutChromeDialog(); |
| 49 virtual void ShowBookmarkManager(); |
| 50 virtual bool IsBookmarkBubbleVisible() const; |
| 51 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); |
| 52 virtual void ShowReportBugDialog(); |
| 53 virtual void ShowClearBrowsingDataDialog(); |
| 54 virtual void ShowImportDialog(); |
| 55 virtual void ShowSearchEnginesDialog(); |
| 56 virtual void ShowPasswordManager(); |
| 57 virtual void ShowSelectProfileDialog(); |
| 58 virtual void ShowNewProfileDialog(); |
| 59 virtual void ShowHTMLDialog(HtmlDialogContentsDelegate* delegate, |
| 60 void* parent_window); |
| 61 |
| 62 protected: |
| 63 virtual void DestroyBrowser(); |
| 64 GtkWindow* window_; |
| 65 |
| 66 scoped_ptr<Browser> browser_; |
| 67 |
| 68 scoped_ptr<BrowserToolbarGtk> toolbar_; |
| 69 }; |
| 70 |
| 71 #endif // CHROME_BROWSER_WINDOW_GTK_H_ |
| 72 |
OLD | NEW |