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

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

Issue 10406016: Implement Action Box button (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
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_
7 #pragma once
8
9 #include "ui/views/controls/button/menu_button.h"
10 #include "ui/views/controls/button/menu_button_listener.h"
11
12 class ActionBoxMenu;
13 class CommandUpdater;
14
15 namespace views {
16 class KeyEvent;
17 class MouseEvent;
18 }
19
20 class ActionBoxButtonView : public views::MenuButton,
not at google - send to devlin 2012/05/17 23:40:24 comment with what the action box is, perhaps?
yefimt 2012/05/18 00:20:02 Done.
21 public views::MenuButtonListener {
22 public:
23 ActionBoxButtonView();
24 virtual ~ActionBoxButtonView();
25
26 private:
27 void SetImages();
28
29 // CustomButton
30 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
31
32 // MenuButtonListener
33 virtual void OnMenuButtonClicked(View* source,
34 const gfx::Point& point) OVERRIDE;
not at google - send to devlin 2012/05/17 23:40:24 Isn't the usual practice to have inherited methods
Aaron Boodman 2012/05/17 23:48:35 No. In fact I prefer them private if they aren't g
not at google - send to devlin 2012/05/17 23:52:03 They're not going to be called? Am I missing somet
Aaron Boodman 2012/05/17 23:56:27 In C++, you can override a virtual method 'private
35
36 // Action box menu.
37 scoped_ptr<ActionBoxMenu> action_box_menu_;
38
39 DISALLOW_EVIL_CONSTRUCTORS(ActionBoxButtonView);
not at google - send to devlin 2012/05/17 23:40:24 wot? Oh, this should be DISALLOW_COPY_AND_ASSIGN,
Aaron Boodman 2012/05/17 23:48:35 Whoops, yeah. DISALLOW_EVIL_CONSTRUCTORS was the n
yefimt 2012/05/18 00:20:02 Done.
40 };
41
42 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698