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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/zoom_decoration.h

Issue 233623002: Shows the info bubble when the location bar icon is clicked in the origin chip. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Created 6 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
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_COCOA_LOCATION_BAR_ZOOM_DECORATION_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ZOOM_DECORATION_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ZOOM_DECORATION_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ZOOM_DECORATION_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 25 matching lines...) Expand all
36 void CloseBubble(); 36 void CloseBubble();
37 37
38 private: 38 private:
39 friend ZoomDecorationTest; 39 friend ZoomDecorationTest;
40 40
41 bool IsAtDefaultZoom() const; 41 bool IsAtDefaultZoom() const;
42 bool ShouldShowDecoration() const; 42 bool ShouldShowDecoration() const;
43 43
44 // LocationBarDecoration implementation. 44 // LocationBarDecoration implementation.
45 virtual bool AcceptsMousePress() OVERRIDE; 45 virtual bool AcceptsMousePress() OVERRIDE;
46 virtual bool OnMousePressed(NSRect frame) OVERRIDE; 46 virtual bool OnMousePressed(NSRect frame, NSPoint location) OVERRIDE;
47 virtual NSString* GetToolTip() OVERRIDE; 47 virtual NSString* GetToolTip() OVERRIDE;
48 virtual NSPoint GetBubblePointInFrame(NSRect frame) OVERRIDE; 48 virtual NSPoint GetBubblePointInFrame(NSRect frame) OVERRIDE;
49 49
50 // ZoomBubbleControllerDelegate implementation. 50 // ZoomBubbleControllerDelegate implementation.
51 virtual content::WebContents* GetWebContents() OVERRIDE; 51 virtual content::WebContents* GetWebContents() OVERRIDE;
52 virtual void OnClose() OVERRIDE; 52 virtual void OnClose() OVERRIDE;
53 53
54 // The control that owns this. Weak. 54 // The control that owns this. Weak.
55 LocationBarViewMac* owner_; 55 LocationBarViewMac* owner_;
56 56
57 // The bubble that this decoration shows. Weak, owns self. 57 // The bubble that this decoration shows. Weak, owns self.
58 ZoomBubbleController* bubble_; 58 ZoomBubbleController* bubble_;
59 59
60 // The string to show for a tooltip. 60 // The string to show for a tooltip.
61 base::scoped_nsobject<NSString> tooltip_; 61 base::scoped_nsobject<NSString> tooltip_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(ZoomDecoration); 63 DISALLOW_COPY_AND_ASSIGN(ZoomDecoration);
64 }; 64 };
65 65
66 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ZOOM_DECORATION_H_ 66 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ZOOM_DECORATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/translate_decoration.mm ('k') | chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698