diff options
author | jcivelli@google.com <jcivelli@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-29 16:07:48 +0000 |
---|---|---|
committer | jcivelli@google.com <jcivelli@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-29 16:07:48 +0000 |
commit | 8759782e334bf963cd385cb8a7f89400afe21b7f (patch) | |
tree | c225c5ce8a2e9b07b936b97011e3b92e7253a483 /chrome/browser/views/location_bar/click_handler.h | |
parent | 39afe64131f55f5efb9ed1a5bf0e228a1dff2d9b (diff) | |
download | chromium_src-8759782e334bf963cd385cb8a7f89400afe21b7f.zip chromium_src-8759782e334bf963cd385cb8a7f89400afe21b7f.tar.gz chromium_src-8759782e334bf963cd385cb8a7f89400afe21b7f.tar.bz2 |
The app launcher now uses the location bar (instead of the autocomplete edit), so
it has "tab to search" and the icons on the left side,
Also split location_bar_view.cc so that every inner-class gets its own .h and .cc
file.
BUG=None
TEST=Make sure the location bar works as expected (tab to search, bookmark star,
page actions...).
Open the app launcher, make sure "tab to search" works as expected.
Review URL: http://codereview.chromium.org/1746009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/location_bar/click_handler.h')
-rw-r--r-- | chrome/browser/views/location_bar/click_handler.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/chrome/browser/views/location_bar/click_handler.h b/chrome/browser/views/location_bar/click_handler.h new file mode 100644 index 0000000..e477e94 --- /dev/null +++ b/chrome/browser/views/location_bar/click_handler.h @@ -0,0 +1,33 @@ +// Copyright (c) 2010 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_VIEWS_LOCATION_BAR_CLICK_HANDLER_H_ +#define CHROME_BROWSER_VIEWS_LOCATION_BAR_CLICK_HANDLER_H_ + +#include "base/basictypes.h" + +class LocationBarView; + +namespace views { +class MouseEvent; +class View; +} + +// This helper class is kept as a member by classes that need to show the Page +// Info dialog on click, to encapsulate that logic in one place. +class ClickHandler { + public: + ClickHandler(const views::View* owner, const LocationBarView* location_bar); + + void OnMouseReleased(const views::MouseEvent& event, bool canceled); + + private: + const views::View* owner_; + const LocationBarView* location_bar_; + + DISALLOW_IMPLICIT_CONSTRUCTORS(ClickHandler); +}; + +#endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_CLICK_HANDLER_H_ + |