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

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

Issue 2685333005: ash: fix regression where ctrl+n put new window on wrong desktop (Closed)
Patch Set: Rebase to ToT Created 3 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
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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 // change. 341 // change.
342 // Note that this won't be fired if we change tabs. 342 // Note that this won't be fired if we change tabs.
343 virtual void UpdatePreferredSize(content::WebContents* web_contents, 343 virtual void UpdatePreferredSize(content::WebContents* web_contents,
344 const gfx::Size& pref_size) {} 344 const gfx::Size& pref_size) {}
345 345
346 // Invoked when the contents auto-resized and the container should match it. 346 // Invoked when the contents auto-resized and the container should match it.
347 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, 347 virtual void ResizeDueToAutoResize(content::WebContents* web_contents,
348 const gfx::Size& new_size) {} 348 const gfx::Size& new_size) {}
349 349
350 // Construct a BrowserWindow implementation for the specified |browser|. 350 // Construct a BrowserWindow implementation for the specified |browser|.
351 static BrowserWindow* CreateBrowserWindow(Browser* browser); 351 static BrowserWindow* CreateBrowserWindow(Browser* browser,
352 bool user_gesture);
352 353
353 // Shows the avatar bubble on the window frame off of the avatar button with 354 // Shows the avatar bubble on the window frame off of the avatar button with
354 // the given mode. The Service Type specified by GAIA is provided as well. 355 // the given mode. The Service Type specified by GAIA is provided as well.
355 // |access_point| indicates the access point used to open the Gaia sign in 356 // |access_point| indicates the access point used to open the Gaia sign in
356 // page. 357 // page.
357 enum AvatarBubbleMode { 358 enum AvatarBubbleMode {
358 AVATAR_BUBBLE_MODE_DEFAULT, 359 AVATAR_BUBBLE_MODE_DEFAULT,
359 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, 360 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT,
360 AVATAR_BUBBLE_MODE_SIGNIN, 361 AVATAR_BUBBLE_MODE_SIGNIN,
361 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, 362 AVATAR_BUBBLE_MODE_ADD_ACCOUNT,
(...skipping 30 matching lines...) Expand all
392 virtual std::string GetWorkspace() const = 0; 393 virtual std::string GetWorkspace() const = 0;
393 virtual bool IsVisibleOnAllWorkspaces() const = 0; 394 virtual bool IsVisibleOnAllWorkspaces() const = 0;
394 395
395 protected: 396 protected:
396 friend class BrowserCloseManager; 397 friend class BrowserCloseManager;
397 friend class BrowserView; 398 friend class BrowserView;
398 virtual void DestroyBrowser() = 0; 399 virtual void DestroyBrowser() = 0;
399 }; 400 };
400 401
401 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 402 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_tab_strip_model_delegate.cc ('k') | chrome/browser/ui/chrome_pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698