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

Side by Side Diff: chrome/browser/cocoa/location_bar/page_action_decoration.h

Issue 3015046: [Mac] M6 Omnibox positioning changes. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Wordsmith per Rohit. Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_COCOA_LOCATION_BAR_PAGE_ACTION_DECORATION_H_ 5 #ifndef CHROME_BROWSER_COCOA_LOCATION_BAR_PAGE_ACTION_DECORATION_H_
6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_PAGE_ACTION_DECORATION_H_ 6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_PAGE_ACTION_DECORATION_H_
7 #pragma once 7 #pragma once
8 8
9 #import "chrome/browser/cocoa/location_bar/image_decoration.h" 9 #import "chrome/browser/cocoa/location_bar/image_decoration.h"
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Sets the tooltip for this Page Action image. 45 // Sets the tooltip for this Page Action image.
46 void SetToolTip(NSString* tooltip); 46 void SetToolTip(NSString* tooltip);
47 void SetToolTip(std::string tooltip); 47 void SetToolTip(std::string tooltip);
48 48
49 // Get the point where extension info bubbles should point within 49 // Get the point where extension info bubbles should point within
50 // the given decoration frame. 50 // the given decoration frame.
51 NSPoint GetBubblePointInFrame(NSRect frame); 51 NSPoint GetBubblePointInFrame(NSRect frame);
52 52
53 // Overridden from |LocationBarDecoration| 53 // Overridden from |LocationBarDecoration|
54 virtual CGFloat GetWidthForSpace(CGFloat width);
54 virtual bool AcceptsMousePress() { return true; } 55 virtual bool AcceptsMousePress() { return true; }
55 virtual bool OnMousePressed(NSRect frame); 56 virtual bool OnMousePressed(NSRect frame);
56 virtual NSString* GetToolTip(); 57 virtual NSString* GetToolTip();
57 virtual NSMenu* GetMenu(); 58 virtual NSMenu* GetMenu();
58 59
59 protected: 60 protected:
60 // For unit testing only. 61 // For unit testing only.
61 PageActionDecoration() : owner_(NULL), 62 PageActionDecoration() : owner_(NULL),
62 profile_(NULL), 63 profile_(NULL),
63 page_action_(NULL), 64 page_action_(NULL),
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 bool preview_enabled_; 107 bool preview_enabled_;
107 108
108 // Used to register for notifications received by 109 // Used to register for notifications received by
109 // NotificationObserver. 110 // NotificationObserver.
110 NotificationRegistrar registrar_; 111 NotificationRegistrar registrar_;
111 112
112 DISALLOW_COPY_AND_ASSIGN(PageActionDecoration); 113 DISALLOW_COPY_AND_ASSIGN(PageActionDecoration);
113 }; 114 };
114 115
115 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_PAGE_ACTION_DECORATION_H_ 116 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_PAGE_ACTION_DECORATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698