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

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

Issue 6685069: Disambiguate OnMouseCaptureLost from OnMouseReleased, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, fix tests, cleanup, etc. Created 9 years, 9 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) 2011 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_CLICK_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CLICK_HANDLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CLICK_HANDLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CLICK_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 class LocationBarView; 11 class LocationBarView;
12 12
13 namespace views { 13 namespace views {
14 class MouseEvent; 14 class MouseEvent;
15 class View; 15 class View;
16 } 16 }
17 17
18 // This helper class is kept as a member by classes that need to show the Page 18 // This helper class is kept as a member by classes that need to show the Page
19 // Info dialog on click, to encapsulate that logic in one place. 19 // Info dialog on click, to encapsulate that logic in one place.
20 class ClickHandler { 20 class ClickHandler {
21 public: 21 public:
22 ClickHandler(const views::View* owner, LocationBarView* location_bar); 22 ClickHandler(const views::View* owner, LocationBarView* location_bar);
23 23
24 void OnMouseReleased(const views::MouseEvent& event, bool canceled); 24 void OnMouseReleased(const views::MouseEvent& event);
25 25
26 private: 26 private:
27 const views::View* owner_; 27 const views::View* owner_;
28 LocationBarView* location_bar_; 28 LocationBarView* location_bar_;
29 29
30 DISALLOW_IMPLICIT_CONSTRUCTORS(ClickHandler); 30 DISALLOW_IMPLICIT_CONSTRUCTORS(ClickHandler);
31 }; 31 };
32 32
33 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CLICK_HANDLER_H_ 33 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CLICK_HANDLER_H_
34 34
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download_item_view.cc ('k') | chrome/browser/ui/views/location_bar/click_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698