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

Side by Side Diff: chrome/browser/ui/views/location_bar/action_box_button_view.h

Issue 10887029: Only show chrome2mobile in action box if it is enabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_
7 7
8 #include "ui/views/controls/button/menu_button.h" 8 #include "ui/views/controls/button/menu_button.h"
9 #include "ui/views/controls/button/menu_button_listener.h" 9 #include "ui/views/controls/button/menu_button_listener.h"
10 10
11 class Browser; 11 class Browser;
12 class Profile; 12 class Profile;
13 class CommandUpdater;
msw 2012/08/30 00:41:43 Remove this unnecessary forward decl.
Cait (Slow) 2012/08/30 01:33:29 Done.
13 14
14 // ActionBoxButtonView displays a plus button with associated menu. 15 // ActionBoxButtonView displays a plus button with associated menu.
15 class ActionBoxButtonView : public views::MenuButton, 16 class ActionBoxButtonView : public views::MenuButton,
16 public views::MenuButtonListener { 17 public views::MenuButtonListener {
17 public: 18 public:
18 explicit ActionBoxButtonView(Browser* browser, Profile* profile); 19 explicit ActionBoxButtonView(Browser* browser);
19 virtual ~ActionBoxButtonView(); 20 virtual ~ActionBoxButtonView();
20 21
21 SkColor GetBackgroundColor(); 22 SkColor GetBackgroundColor();
22 SkColor GetBorderColor(); 23 SkColor GetBorderColor();
23 24
24 static bool IsActionBoxEnabled(); 25 static bool IsActionBoxEnabled();
25 26
26 private: 27 private:
27 // Overridden from views::CustomButton: 28 // Overridden from views::CustomButton:
28 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 29 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
29 30
30 // Overridden from views::MenuButtonListener: 31 // Overridden from views::MenuButtonListener:
31 virtual void OnMenuButtonClicked(View* source, 32 virtual void OnMenuButtonClicked(View* source,
32 const gfx::Point& point) OVERRIDE; 33 const gfx::Point& point) OVERRIDE;
33 34
34 Browser* browser_; 35 Browser* browser_;
35 Profile* profile_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonView); 37 DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonView);
38 }; 38 };
39 39
40 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_ 40 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698