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

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

Issue 10545115: TabContentsWrapper -> TabContents, part 41. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/browser_titlebar.cc ('k') | chrome/browser/ui/gtk/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
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 const GURL& url, FullscreenExitBubbleType type) OVERRIDE; 100 const GURL& url, FullscreenExitBubbleType type) OVERRIDE;
101 virtual void ExitFullscreen() OVERRIDE; 101 virtual void ExitFullscreen() OVERRIDE;
102 virtual void UpdateFullscreenExitBubbleContent( 102 virtual void UpdateFullscreenExitBubbleContent(
103 const GURL& url, 103 const GURL& url,
104 FullscreenExitBubbleType bubble_type) OVERRIDE; 104 FullscreenExitBubbleType bubble_type) OVERRIDE;
105 virtual bool IsFullscreen() const OVERRIDE; 105 virtual bool IsFullscreen() const OVERRIDE;
106 virtual bool IsFullscreenBubbleVisible() const OVERRIDE; 106 virtual bool IsFullscreenBubbleVisible() const OVERRIDE;
107 virtual LocationBar* GetLocationBar() const OVERRIDE; 107 virtual LocationBar* GetLocationBar() const OVERRIDE;
108 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; 108 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE;
109 virtual void UpdateReloadStopState(bool is_loading, bool force) OVERRIDE; 109 virtual void UpdateReloadStopState(bool is_loading, bool force) OVERRIDE;
110 virtual void UpdateToolbar(TabContentsWrapper* contents, 110 virtual void UpdateToolbar(TabContents* contents,
111 bool should_restore_state) OVERRIDE; 111 bool should_restore_state) OVERRIDE;
112 virtual void FocusToolbar() OVERRIDE; 112 virtual void FocusToolbar() OVERRIDE;
113 virtual void FocusAppMenu() OVERRIDE; 113 virtual void FocusAppMenu() OVERRIDE;
114 virtual void FocusBookmarksToolbar() OVERRIDE; 114 virtual void FocusBookmarksToolbar() OVERRIDE;
115 virtual void RotatePaneFocus(bool forwards) OVERRIDE; 115 virtual void RotatePaneFocus(bool forwards) OVERRIDE;
116 virtual bool IsBookmarkBarVisible() const OVERRIDE; 116 virtual bool IsBookmarkBarVisible() const OVERRIDE;
117 virtual bool IsBookmarkBarAnimating() const OVERRIDE; 117 virtual bool IsBookmarkBarAnimating() const OVERRIDE;
118 virtual bool IsTabStripEditable() const OVERRIDE; 118 virtual bool IsTabStripEditable() const OVERRIDE;
119 virtual bool IsToolbarVisible() const OVERRIDE; 119 virtual bool IsToolbarVisible() const OVERRIDE;
120 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; 120 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
(...skipping 16 matching lines...) Expand all
137 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; 137 virtual DownloadShelf* GetDownloadShelf() OVERRIDE;
138 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE; 138 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE;
139 virtual void UserChangedTheme() OVERRIDE; 139 virtual void UserChangedTheme() OVERRIDE;
140 virtual int GetExtraRenderViewHeight() const OVERRIDE; 140 virtual int GetExtraRenderViewHeight() const OVERRIDE;
141 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; 141 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE;
142 virtual void ShowPageInfo(Profile* profile, 142 virtual void ShowPageInfo(Profile* profile,
143 const GURL& url, 143 const GURL& url,
144 const content::SSLStatus& ssl, 144 const content::SSLStatus& ssl,
145 bool show_history) OVERRIDE; 145 bool show_history) OVERRIDE;
146 virtual void ShowWebsiteSettings(Profile* profile, 146 virtual void ShowWebsiteSettings(Profile* profile,
147 TabContentsWrapper* tab_contents_wrapper, 147 TabContents* tab_contents,
148 const GURL& url, 148 const GURL& url,
149 const content::SSLStatus& ssl, 149 const content::SSLStatus& ssl,
150 bool show_history) OVERRIDE; 150 bool show_history) OVERRIDE;
151 virtual void ShowAppMenu() OVERRIDE; 151 virtual void ShowAppMenu() OVERRIDE;
152 virtual bool PreHandleKeyboardEvent( 152 virtual bool PreHandleKeyboardEvent(
153 const content::NativeWebKeyboardEvent& event, 153 const content::NativeWebKeyboardEvent& event,
154 bool* is_keyboard_shortcut) OVERRIDE; 154 bool* is_keyboard_shortcut) OVERRIDE;
155 virtual void HandleKeyboardEvent( 155 virtual void HandleKeyboardEvent(
156 const content::NativeWebKeyboardEvent& event) OVERRIDE; 156 const content::NativeWebKeyboardEvent& event) OVERRIDE;
157 virtual void ShowCreateWebAppShortcutsDialog( 157 virtual void ShowCreateWebAppShortcutsDialog(
158 TabContentsWrapper* tab_contents) OVERRIDE; 158 TabContents* tab_contents) OVERRIDE;
159 virtual void ShowCreateChromeAppShortcutsDialog( 159 virtual void ShowCreateChromeAppShortcutsDialog(
160 Profile* profile, 160 Profile* profile,
161 const extensions::Extension* app) OVERRIDE; 161 const extensions::Extension* app) OVERRIDE;
162 virtual void Cut() OVERRIDE; 162 virtual void Cut() OVERRIDE;
163 virtual void Copy() OVERRIDE; 163 virtual void Copy() OVERRIDE;
164 virtual void Paste() OVERRIDE; 164 virtual void Paste() OVERRIDE;
165 virtual void ShowInstant(TabContentsWrapper* preview) OVERRIDE; 165 virtual void ShowInstant(TabContents* preview) OVERRIDE;
166 virtual void HideInstant() OVERRIDE; 166 virtual void HideInstant() OVERRIDE;
167 virtual gfx::Rect GetInstantBounds() OVERRIDE; 167 virtual gfx::Rect GetInstantBounds() OVERRIDE;
168 virtual WindowOpenDisposition GetDispositionForPopupBounds( 168 virtual WindowOpenDisposition GetDispositionForPopupBounds(
169 const gfx::Rect& bounds) OVERRIDE; 169 const gfx::Rect& bounds) OVERRIDE;
170 virtual FindBar* CreateFindBar() OVERRIDE; 170 virtual FindBar* CreateFindBar() OVERRIDE;
171 virtual void ShowAvatarBubble(content::WebContents* web_contents, 171 virtual void ShowAvatarBubble(content::WebContents* web_contents,
172 const gfx::Rect& rect) OVERRIDE; 172 const gfx::Rect& rect) OVERRIDE;
173 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE; 173 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE;
174 virtual void ShowPasswordGenerationBubble( 174 virtual void ShowPasswordGenerationBubble(
175 const gfx::Rect& rect, 175 const gfx::Rect& rect,
176 autofill::PasswordGenerator* password_generator, 176 autofill::PasswordGenerator* password_generator,
177 const webkit::forms::PasswordForm& form) OVERRIDE; 177 const webkit::forms::PasswordForm& form) OVERRIDE;
178 178
179 // Overridden from NotificationObserver: 179 // Overridden from NotificationObserver:
180 virtual void Observe(int type, 180 virtual void Observe(int type,
181 const content::NotificationSource& source, 181 const content::NotificationSource& source,
182 const content::NotificationDetails& details) OVERRIDE; 182 const content::NotificationDetails& details) OVERRIDE;
183 183
184 // Overridden from TabStripModelObserver: 184 // Overridden from TabStripModelObserver:
185 virtual void TabDetachedAt(TabContentsWrapper* contents, int index) OVERRIDE; 185 virtual void TabDetachedAt(TabContents* contents, int index) OVERRIDE;
186 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, 186 virtual void ActiveTabChanged(TabContents* old_contents,
187 TabContentsWrapper* new_contents, 187 TabContents* new_contents,
188 int index, 188 int index,
189 bool user_gesture) OVERRIDE; 189 bool user_gesture) OVERRIDE;
190 190
191 // Overridden from ActiveWindowWatcherXObserver. 191 // Overridden from ActiveWindowWatcherXObserver.
192 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE; 192 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE;
193 193
194 // Overridden from InfoBarContainer::Delegate: 194 // Overridden from InfoBarContainer::Delegate:
195 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; 195 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE;
196 virtual void InfoBarContainerStateChanged(bool is_animating) OVERRIDE; 196 virtual void InfoBarContainerStateChanged(bool is_animating) OVERRIDE;
197 virtual bool DrawInfoBarArrows(int* x) const OVERRIDE; 197 virtual bool DrawInfoBarArrows(int* x) const OVERRIDE;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 BrowserTitlebarBase* titlebar() const { return titlebar_.get(); } 246 BrowserTitlebarBase* titlebar() const { return titlebar_.get(); }
247 247
248 GtkWidget* titlebar_widget() const; 248 GtkWidget* titlebar_widget() const;
249 249
250 BrowserToolbarGtk* GetToolbar() { return toolbar_.get(); } 250 BrowserToolbarGtk* GetToolbar() { return toolbar_.get(); }
251 251
252 gfx::Rect bounds() const { return bounds_; } 252 gfx::Rect bounds() const { return bounds_; }
253 253
254 // Returns the tab we're currently displaying in the tab contents container. 254 // Returns the tab we're currently displaying in the tab contents container.
255 TabContentsWrapper* GetDisplayedTab(); 255 TabContents* GetDisplayedTab();
256 256
257 static void RegisterUserPrefs(PrefService* prefs); 257 static void RegisterUserPrefs(PrefService* prefs);
258 258
259 // Tells GTK that the toolbar area is invalidated and needs redrawing. We 259 // Tells GTK that the toolbar area is invalidated and needs redrawing. We
260 // have this method as a hack because GTK doesn't queue the toolbar area for 260 // have this method as a hack because GTK doesn't queue the toolbar area for
261 // redraw when it should. 261 // redraw when it should.
262 void QueueToolbarRedraw(); 262 void QueueToolbarRedraw();
263 263
264 // Get the position where the infobar arrow should be anchored in 264 // Get the position where the infobar arrow should be anchored in
265 // |relative_to| coordinates. This is the middle of the omnibox location icon. 265 // |relative_to| coordinates. This is the middle of the omnibox location icon.
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; 577 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_;
578 578
579 FullscreenExitBubbleType fullscreen_exit_bubble_type_; 579 FullscreenExitBubbleType fullscreen_exit_bubble_type_;
580 580
581 content::NotificationRegistrar registrar_; 581 content::NotificationRegistrar registrar_;
582 582
583 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); 583 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk);
584 }; 584 };
585 585
586 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ 586 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_titlebar.cc ('k') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698