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

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

Issue 1158523002: Add user_gesture param to BaseWindow::Show Base URL: https://chromium.googlesource.com/chromium/src.git@ug3_BaseWindow_Activate
Patch Set: Update callers Created 5 years, 7 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
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 "chrome/browser/lifetime/browser_close_manager.h" 9 #include "chrome/browser/lifetime/browser_close_manager.h"
10 #include "chrome/browser/signin/signin_header_helper.h" 10 #include "chrome/browser/signin/signin_header_helper.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Closes the window as soon as possible. If the window is not in a drag 72 // Closes the window as soon as possible. If the window is not in a drag
73 // session, it will close immediately; otherwise, it will move offscreen (so 73 // session, it will close immediately; otherwise, it will move offscreen (so
74 // events are still fired) until the drag ends, then close. This assumes 74 // events are still fired) until the drag ends, then close. This assumes
75 // that the Browser is not immediately destroyed, but will be eventually 75 // that the Browser is not immediately destroyed, but will be eventually
76 // destroyed by other means (eg, the tab strip going to zero elements). 76 // destroyed by other means (eg, the tab strip going to zero elements).
77 // Bad things happen if the Browser dtor is called directly as a result of 77 // Bad things happen if the Browser dtor is called directly as a result of
78 // invoking this method. 78 // invoking this method.
79 // virtual void Close() = 0; 79 // virtual void Close() = 0;
80 80
81 // Browser::OnWindowDidShow should be called after showing the window. 81 // Browser::OnWindowDidShow should be called after showing the window.
82 // virtual void Show() = 0; 82 // virtual void Show(bool user_gesture) = 0;
83 83
84 ////////////////////////////////////////////////////////////////////////////// 84 //////////////////////////////////////////////////////////////////////////////
85 // Browser specific methods: 85 // Browser specific methods:
86 86
87 // Return the status bubble associated with the frame 87 // Return the status bubble associated with the frame
88 virtual StatusBubble* GetStatusBubble() = 0; 88 virtual StatusBubble* GetStatusBubble() = 0;
89 89
90 // Inform the frame that the selected tab favicon or title has changed. Some 90 // Inform the frame that the selected tab favicon or title has changed. Some
91 // frames may need to refresh their title bar. 91 // frames may need to refresh their title bar.
92 virtual void UpdateTitleBar() = 0; 92 virtual void UpdateTitleBar() = 0;
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // Returns object implementing ExclusiveAccessContext interface. 390 // Returns object implementing ExclusiveAccessContext interface.
391 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; 391 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0;
392 392
393 protected: 393 protected:
394 friend class BrowserCloseManager; 394 friend class BrowserCloseManager;
395 friend class BrowserView; 395 friend class BrowserView;
396 virtual void DestroyBrowser() = 0; 396 virtual void DestroyBrowser() = 0;
397 }; 397 };
398 398
399 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 399 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_tab_restore_service_delegate.cc ('k') | chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698