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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/location_bar/action_box_button_view.h
===================================================================
--- chrome/browser/ui/views/location_bar/action_box_button_view.h (revision 0)
+++ chrome/browser/ui/views/location_bar/action_box_button_view.h (revision 0)
@@ -0,0 +1,42 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_
+#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_
+#pragma once
+
+#include "ui/views/controls/button/menu_button.h"
+#include "ui/views/controls/button/menu_button_listener.h"
+
+class ActionBoxMenu;
+class CommandUpdater;
+
+namespace views {
+class KeyEvent;
+class MouseEvent;
+}
+
+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.
+ public views::MenuButtonListener {
+ public:
+ ActionBoxButtonView();
+ virtual ~ActionBoxButtonView();
+
+ private:
+ void SetImages();
+
+ // CustomButton
+ virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
+
+ // MenuButtonListener
+ virtual void OnMenuButtonClicked(View* source,
+ 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
+
+ // Action box menu.
+ scoped_ptr<ActionBoxMenu> action_box_menu_;
+
+ 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.
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698