Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Side by Side Diff: chrome/browser/browser_window_gtk.h

Issue 21176: Porting the toolbar to GTK. (Closed)
Patch Set: Move into gtk/ folder at Ben's request. Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/browser_window_factory_gtk.cc ('k') | chrome/browser/browser_window_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
13 // An implementation of BrowserWindow for GTK.
14 // Cross-platform code will interact with this object when
15 // it needs to manipulate the window.
16
17 class BrowserWindowGtk : public BrowserWindow {
18 public:
19 explicit BrowserWindowGtk(Browser* browser);
20 virtual ~BrowserWindowGtk();
21
22 // Overridden from BrowserWindow
23 virtual void Init();
24 virtual void Show();
25 virtual void SetBounds(const gfx::Rect& bounds);
26 virtual void Close();
27 virtual void Activate();
28 virtual void FlashFrame();
29 virtual void* GetNativeHandle();
30 virtual BrowserWindowTesting* GetBrowserWindowTesting();
31 virtual StatusBubble* GetStatusBubble();
32 virtual void SelectedTabToolbarSizeChanged(bool is_animating);
33 virtual void UpdateTitleBar();
34 virtual void UpdateLoadingAnimations(bool should_animate);
35 virtual void SetStarredState(bool is_starred);
36 virtual gfx::Rect GetNormalBounds() const;
37 virtual bool IsMaximized();
38 virtual LocationBar* GetLocationBar() const;
39 virtual void UpdateStopGoState(bool is_loading);
40 virtual void UpdateToolbar(TabContents* contents,
41 bool should_restore_state);
42 virtual void FocusToolbar();
43 virtual bool IsBookmarkBarVisible() const;
44 virtual void ToggleBookmarkBar();
45 virtual void ShowAboutChromeDialog();
46 virtual void ShowBookmarkManager();
47 virtual bool IsBookmarkBubbleVisible() const;
48 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked);
49 virtual void ShowReportBugDialog();
50 virtual void ShowClearBrowsingDataDialog();
51 virtual void ShowImportDialog();
52 virtual void ShowSearchEnginesDialog();
53 virtual void ShowPasswordManager();
54 virtual void ShowSelectProfileDialog();
55 virtual void ShowNewProfileDialog();
56 virtual void ShowHTMLDialog(HtmlDialogContentsDelegate* delegate,
57 void* parent_window);
58
59 protected:
60 virtual void DestroyBrowser();
61 GtkWindow* window_;
62 scoped_ptr<Browser> browser_;
63 };
64
65 #endif // CHROME_BROWSER_WINDOW_GTK_H_
66
OLDNEW
« no previous file with comments | « chrome/browser/browser_window_factory_gtk.cc ('k') | chrome/browser/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698