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

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

Issue 420533002: zoom bubble: Close if anchor is clicked while bubble is showing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf Created 6 years, 4 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_ZOOM_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 10 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
(...skipping 21 matching lines...) Expand all
32 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 32 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
33 virtual bool GetTooltipText(const gfx::Point& p, 33 virtual bool GetTooltipText(const gfx::Point& p,
34 base::string16* tooltip) const OVERRIDE; 34 base::string16* tooltip) const OVERRIDE;
35 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 35 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
36 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 36 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
37 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 37 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
38 38
39 // ui::EventHandler: 39 // ui::EventHandler:
40 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 40 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
41 41
42 // Helper method to show and focus the zoom bubble associated with this 42 // Hide the zoom bubble if it's showing. Show the zoom bubble if it's hidden.
msw 2014/07/24 22:07:13 It seems like ZoomView should be a BubbleIconView
Dan Beam 2014/10/23 23:34:03 Done.
43 // widget. 43 void ToggleBubble();
44 void ActivateBubble();
45 44
46 // The delegate used to get the currently visible WebContents. 45 // The delegate used to get the currently visible WebContents.
47 LocationBarView::Delegate* location_bar_delegate_; 46 LocationBarView::Delegate* location_bar_delegate_;
48 47
48 // Was the zoom bubble showing when the mouse went down inside this view.
49 bool was_bubble_showing_;
50
49 DISALLOW_COPY_AND_ASSIGN(ZoomView); 51 DISALLOW_COPY_AND_ASSIGN(ZoomView);
50 }; 52 };
51 53
52 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ 54 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_bubble_view.cc ('k') | chrome/browser/ui/views/location_bar/zoom_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698