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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/button_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: Comment tweaks. Created 6 years, 8 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_BUTTON_DECORATION_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_BUTTON_DECORATION_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_BUTTON_DECORATION_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_BUTTON_DECORATION_H_
7 7
8 #import "base/mac/scoped_nsobject.h" 8 #import "base/mac/scoped_nsobject.h"
9 #include "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h" 9 #include "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h"
10 #import "ui/base/cocoa/appkit_utils.h" 10 #import "ui/base/cocoa/appkit_utils.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 ui::NinePartImageIds pressed_image_ids); 50 ui::NinePartImageIds pressed_image_ids);
51 51
52 ui::NinePartImageIds GetBackgroundImageIds() const; 52 ui::NinePartImageIds GetBackgroundImageIds() const;
53 NSImage* GetIconImage() const; 53 NSImage* GetIconImage() const;
54 54
55 // Implement |LocationBarDecoration|. 55 // Implement |LocationBarDecoration|.
56 virtual CGFloat GetWidthForSpace(CGFloat width) OVERRIDE; 56 virtual CGFloat GetWidthForSpace(CGFloat width) OVERRIDE;
57 virtual void DrawInFrame(NSRect frame, NSView* control_view) OVERRIDE; 57 virtual void DrawInFrame(NSRect frame, NSView* control_view) OVERRIDE;
58 virtual bool AcceptsMousePress() OVERRIDE; 58 virtual bool AcceptsMousePress() OVERRIDE;
59 virtual bool IsDraggable() OVERRIDE; 59 virtual bool IsDraggable() OVERRIDE;
60 virtual bool OnMousePressed(NSRect frame) OVERRIDE; 60 virtual bool OnMousePressed(NSRect frame, NSPoint location) OVERRIDE;
61 virtual ButtonDecoration* AsButtonDecoration() OVERRIDE; 61 virtual ButtonDecoration* AsButtonDecoration() OVERRIDE;
62 62
63 private: 63 private:
64 ui::NinePartImageIds normal_image_ids_; 64 ui::NinePartImageIds normal_image_ids_;
65 ui::NinePartImageIds hover_image_ids_; 65 ui::NinePartImageIds hover_image_ids_;
66 ui::NinePartImageIds pressed_image_ids_; 66 ui::NinePartImageIds pressed_image_ids_;
67 int normal_icon_id_; 67 int normal_icon_id_;
68 int hover_icon_id_; 68 int hover_icon_id_;
69 int pressed_icon_id_; 69 int pressed_icon_id_;
70 ButtonState state_; 70 ButtonState state_;
71 CGFloat max_inner_padding_; 71 CGFloat max_inner_padding_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(ButtonDecoration); 73 DISALLOW_COPY_AND_ASSIGN(ButtonDecoration);
74 }; 74 };
75 75
76 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_BUTTON_DECORATION_H_ 76 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_BUTTON_DECORATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698