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

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

Issue 776423002: The Apps ntp page should not display an avatar menu when clicking on the username. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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 "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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 351
352 // Construct a BrowserWindow implementation for the specified |browser|. 352 // Construct a BrowserWindow implementation for the specified |browser|.
353 static BrowserWindow* CreateBrowserWindow(Browser* browser); 353 static BrowserWindow* CreateBrowserWindow(Browser* browser);
354 354
355 // Returns a HostDesktopType that is compatible with the current Chrome window 355 // Returns a HostDesktopType that is compatible with the current Chrome window
356 // configuration. On Windows with Ash, this is always HOST_DESKTOP_TYPE_ASH 356 // configuration. On Windows with Ash, this is always HOST_DESKTOP_TYPE_ASH
357 // while Chrome is running in Metro mode. Otherwise returns |desktop_type|. 357 // while Chrome is running in Metro mode. Otherwise returns |desktop_type|.
358 static chrome::HostDesktopType AdjustHostDesktopType( 358 static chrome::HostDesktopType AdjustHostDesktopType(
359 chrome::HostDesktopType desktop_type); 359 chrome::HostDesktopType desktop_type);
360 360
361 // Shows the avatar bubble inside |web_contents|. The bubble is positioned
362 // relative to |rect|. |rect| should be in the |web_contents| coordinate
363 // system.
364 virtual void ShowAvatarBubble(content::WebContents* web_contents,
365 const gfx::Rect& rect) = 0;
366
367 // Shows the avatar bubble on the window frame off of the avatar button with 361 // Shows the avatar bubble on the window frame off of the avatar button with
368 // the given mode. The Service Type specified by GAIA is provided as well. 362 // the given mode. The Service Type specified by GAIA is provided as well.
369 enum AvatarBubbleMode { 363 enum AvatarBubbleMode {
370 AVATAR_BUBBLE_MODE_DEFAULT, 364 AVATAR_BUBBLE_MODE_DEFAULT,
371 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, 365 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT,
372 AVATAR_BUBBLE_MODE_SIGNIN, 366 AVATAR_BUBBLE_MODE_SIGNIN,
373 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, 367 AVATAR_BUBBLE_MODE_ADD_ACCOUNT,
374 AVATAR_BUBBLE_MODE_REAUTH, 368 AVATAR_BUBBLE_MODE_REAUTH,
375 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, 369 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN,
376 AVATAR_BUBBLE_MODE_SHOW_ERROR, 370 AVATAR_BUBBLE_MODE_SHOW_ERROR,
(...skipping 10 matching lines...) Expand all
387 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, 381 virtual void ExecuteExtensionCommand(const extensions::Extension* extension,
388 const extensions::Command& command) = 0; 382 const extensions::Command& command) = 0;
389 383
390 protected: 384 protected:
391 friend class BrowserCloseManager; 385 friend class BrowserCloseManager;
392 friend class BrowserView; 386 friend class BrowserView;
393 virtual void DestroyBrowser() = 0; 387 virtual void DestroyBrowser() = 0;
394 }; 388 };
395 389
396 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 390 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.css ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698