OLD | NEW |
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/chrome_signin_helper.h" | 10 #include "chrome/browser/signin/chrome_signin_helper.h" |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 virtual void UpdatePreferredSize(content::WebContents* web_contents, | 355 virtual void UpdatePreferredSize(content::WebContents* web_contents, |
356 const gfx::Size& pref_size) {} | 356 const gfx::Size& pref_size) {} |
357 | 357 |
358 // Invoked when the contents auto-resized and the container should match it. | 358 // Invoked when the contents auto-resized and the container should match it. |
359 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, | 359 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, |
360 const gfx::Size& new_size) {} | 360 const gfx::Size& new_size) {} |
361 | 361 |
362 // Construct a BrowserWindow implementation for the specified |browser|. | 362 // Construct a BrowserWindow implementation for the specified |browser|. |
363 static BrowserWindow* CreateBrowserWindow(Browser* browser); | 363 static BrowserWindow* CreateBrowserWindow(Browser* browser); |
364 | 364 |
365 // Returns a HostDesktopType that is compatible with the current Chrome window | 365 // Returns a ui::HostDesktopType that is compatible with the current Chrome |
366 // configuration. On Windows with Ash, this is always HOST_DESKTOP_TYPE_ASH | 366 // window |
| 367 // configuration. On Windows with Ash, this is always |
| 368 // ui::HOST_DESKTOP_TYPE_ASH |
367 // while Chrome is running in Metro mode. Otherwise returns |desktop_type|. | 369 // while Chrome is running in Metro mode. Otherwise returns |desktop_type|. |
368 static chrome::HostDesktopType AdjustHostDesktopType( | 370 static ui::HostDesktopType AdjustHostDesktopType( |
369 chrome::HostDesktopType desktop_type); | 371 ui::HostDesktopType desktop_type); |
370 | 372 |
371 // Shows the avatar bubble on the window frame off of the avatar button with | 373 // Shows the avatar bubble on the window frame off of the avatar button with |
372 // the given mode. The Service Type specified by GAIA is provided as well. | 374 // the given mode. The Service Type specified by GAIA is provided as well. |
373 enum AvatarBubbleMode { | 375 enum AvatarBubbleMode { |
374 AVATAR_BUBBLE_MODE_DEFAULT, | 376 AVATAR_BUBBLE_MODE_DEFAULT, |
375 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 377 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
376 AVATAR_BUBBLE_MODE_SIGNIN, | 378 AVATAR_BUBBLE_MODE_SIGNIN, |
377 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, | 379 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, |
378 AVATAR_BUBBLE_MODE_REAUTH, | 380 AVATAR_BUBBLE_MODE_REAUTH, |
379 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, | 381 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, |
(...skipping 15 matching lines...) Expand all Loading... |
395 // Returns object implementing ExclusiveAccessContext interface. | 397 // Returns object implementing ExclusiveAccessContext interface. |
396 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 398 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
397 | 399 |
398 protected: | 400 protected: |
399 friend class BrowserCloseManager; | 401 friend class BrowserCloseManager; |
400 friend class BrowserView; | 402 friend class BrowserView; |
401 virtual void DestroyBrowser() = 0; | 403 virtual void DestroyBrowser() = 0; |
402 }; | 404 }; |
403 | 405 |
404 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 406 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |