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

Side by Side Diff: chrome/browser/ui/browser_window.h

Issue 2540523003: Use standardized accelerator-to-shortcut code for new backspace shortcut UI. (Closed)
Patch Set: Created 4 years 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/lifetime/browser_close_manager.h" 10 #include "chrome/browser/lifetime/browser_close_manager.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // Windows and GTK remove the browser controls in fullscreen, but Mac and Ash 157 // Windows and GTK remove the browser controls in fullscreen, but Mac and Ash
158 // keep the controls in a slide-down panel. 158 // keep the controls in a slide-down panel.
159 virtual bool ShouldHideUIForFullscreen() const = 0; 159 virtual bool ShouldHideUIForFullscreen() const = 0;
160 160
161 // Returns true if the fullscreen bubble is visible. 161 // Returns true if the fullscreen bubble is visible.
162 virtual bool IsFullscreenBubbleVisible() const = 0; 162 virtual bool IsFullscreenBubbleVisible() const = 0;
163 163
164 // Shows a notice teaching the user the new shortcut for going back or forward 164 // Shows a notice teaching the user the new shortcut for going back or forward
165 // if the user has pressed the old shortcut more than once in three seconds 165 // if the user has pressed the old shortcut more than once in three seconds
166 // and the bubble has been shown less than five times. 166 // and the bubble has been shown less than five times.
167 virtual void MaybeShowNewBackShortcutBubble(bool forward) = 0; 167 virtual void MaybeShowNewBackShortcutBubble(int command_id) = 0;
sky 2016/11/29 00:14:54 I like the boolean here (or use an enum) as it mak
Peter Kasting 2016/11/29 00:58:38 I thought about this some when making the change,
sky 2016/11/29 04:22:57 It's certainly more general and it only works righ
168 168
169 // Hides the new back shortcut bubble, if showing, by fading it out. 169 // Hides the new back shortcut bubble, if showing, by fading it out.
170 virtual void HideNewBackShortcutBubble() = 0; 170 virtual void HideNewBackShortcutBubble() = 0;
171 171
172 // Returns the size of WebContents in the browser. This may be called before 172 // Returns the size of WebContents in the browser. This may be called before
173 // the TabStripModel has an active tab. 173 // the TabStripModel has an active tab.
174 virtual gfx::Size GetContentsSize() const = 0; 174 virtual gfx::Size GetContentsSize() const = 0;
175 175
176 // Returns the location bar. 176 // Returns the location bar.
177 virtual LocationBar* GetLocationBar() const = 0; 177 virtual LocationBar* GetLocationBar() const = 0;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 virtual std::string GetWorkspace() const = 0; 395 virtual std::string GetWorkspace() const = 0;
396 virtual bool IsVisibleOnAllWorkspaces() const = 0; 396 virtual bool IsVisibleOnAllWorkspaces() const = 0;
397 397
398 protected: 398 protected:
399 friend class BrowserCloseManager; 399 friend class BrowserCloseManager;
400 friend class BrowserView; 400 friend class BrowserView;
401 virtual void DestroyBrowser() = 0; 401 virtual void DestroyBrowser() = 0;
402 }; 402 };
403 403
404 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 404 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_command_controller.cc ('k') | chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698