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

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

Issue 1581473002: Remove base/win/metro.{cc|h} and some associated code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 11 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 virtual void UpdatePreferredSize(content::WebContents* web_contents, 353 virtual void UpdatePreferredSize(content::WebContents* web_contents,
354 const gfx::Size& pref_size) {} 354 const gfx::Size& pref_size) {}
355 355
356 // Invoked when the contents auto-resized and the container should match it. 356 // Invoked when the contents auto-resized and the container should match it.
357 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, 357 virtual void ResizeDueToAutoResize(content::WebContents* web_contents,
358 const gfx::Size& new_size) {} 358 const gfx::Size& new_size) {}
359 359
360 // Construct a BrowserWindow implementation for the specified |browser|. 360 // Construct a BrowserWindow implementation for the specified |browser|.
361 static BrowserWindow* CreateBrowserWindow(Browser* browser); 361 static BrowserWindow* CreateBrowserWindow(Browser* browser);
362 362
363 // Returns a HostDesktopType that is compatible with the current Chrome window
364 // configuration. On Windows with Ash, this is always HOST_DESKTOP_TYPE_ASH
365 // while Chrome is running in Metro mode. Otherwise returns |desktop_type|.
366 static chrome::HostDesktopType AdjustHostDesktopType(
367 chrome::HostDesktopType desktop_type);
368
369 // Shows the avatar bubble on the window frame off of the avatar button with 363 // Shows the avatar bubble on the window frame off of the avatar button with
370 // the given mode. The Service Type specified by GAIA is provided as well. 364 // the given mode. The Service Type specified by GAIA is provided as well.
371 // |access_point| indicates the access point used to open the Gaia sign in 365 // |access_point| indicates the access point used to open the Gaia sign in
372 // page. 366 // page.
373 enum AvatarBubbleMode { 367 enum AvatarBubbleMode {
374 AVATAR_BUBBLE_MODE_DEFAULT, 368 AVATAR_BUBBLE_MODE_DEFAULT,
375 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, 369 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT,
376 AVATAR_BUBBLE_MODE_SIGNIN, 370 AVATAR_BUBBLE_MODE_SIGNIN,
377 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, 371 AVATAR_BUBBLE_MODE_ADD_ACCOUNT,
378 AVATAR_BUBBLE_MODE_REAUTH, 372 AVATAR_BUBBLE_MODE_REAUTH,
(...skipping 29 matching lines...) Expand all
408 // Returns object implementing ExclusiveAccessContext interface. 402 // Returns object implementing ExclusiveAccessContext interface.
409 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; 403 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0;
410 404
411 protected: 405 protected:
412 friend class BrowserCloseManager; 406 friend class BrowserCloseManager;
413 friend class BrowserView; 407 friend class BrowserView;
414 virtual void DestroyBrowser() = 0; 408 virtual void DestroyBrowser() = 0;
415 }; 409 };
416 410
417 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 411 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698