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

Side by Side Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view.h

Issue 8356028: Add shortcut to show avatar menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build error Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "views/window/non_client_view.h" 9 #include "views/window/non_client_view.h"
10 10
11 class AvatarMenuButton;
11 class BrowserFrame; 12 class BrowserFrame;
12 class BrowserView; 13 class BrowserView;
13 14
14 // A specialization of the NonClientFrameView object that provides additional 15 // A specialization of the NonClientFrameView object that provides additional
15 // Browser-specific methods. 16 // Browser-specific methods.
16 class BrowserNonClientFrameView : public views::NonClientFrameView { 17 class BrowserNonClientFrameView : public views::NonClientFrameView {
17 public: 18 public:
18 BrowserNonClientFrameView() : NonClientFrameView() {} 19 BrowserNonClientFrameView() : NonClientFrameView() {}
19 virtual ~BrowserNonClientFrameView() {} 20 virtual ~BrowserNonClientFrameView() {}
20 21
21 // Returns the bounds within which the TabStrip should be laid out. 22 // Returns the bounds within which the TabStrip should be laid out.
22 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const = 0; 23 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const = 0;
23 24
24 // Returns the y coordinate within the window at which the horizontal TabStrip 25 // Returns the y coordinate within the window at which the horizontal TabStrip
25 // begins, or (in vertical tabs mode) would begin. If |restored| is true, 26 // begins, or (in vertical tabs mode) would begin. If |restored| is true,
26 // this is calculated as if we were in restored mode regardless of the current 27 // this is calculated as if we were in restored mode regardless of the current
27 // mode. This is used to correctly align theme images. 28 // mode. This is used to correctly align theme images.
28 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const = 0; 29 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const = 0;
29 30
30 // Updates the throbber. 31 // Updates the throbber.
31 virtual void UpdateThrobber(bool running) = 0; 32 virtual void UpdateThrobber(bool running) = 0;
33
34 // Gets the avatar menu button. The button maybe NULL.
35 virtual AvatarMenuButton* GetAvatarMenuButton() = 0;
32 }; 36 };
33 37
34 namespace browser { 38 namespace browser {
35 39
36 // Provided by a browser_non_client_frame_view_factory_*.cc implementation 40 // Provided by a browser_non_client_frame_view_factory_*.cc implementation
37 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( 41 BrowserNonClientFrameView* CreateBrowserNonClientFrameView(
38 BrowserFrame* frame, BrowserView* browser_view); 42 BrowserFrame* frame, BrowserView* browser_view);
39 43
40 } // browser 44 } // browser
41 45
42 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ 46 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame.cc ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698