OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EV_BUBBLE_DECORATION_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_ |
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_ | 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "chrome/browser/ui/cocoa/location_bar/bubble_decoration.h" | 10 #include "chrome/browser/ui/cocoa/location_bar/bubble_decoration.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 virtual CGFloat GetWidthForSpace(CGFloat width) OVERRIDE; | 37 virtual CGFloat GetWidthForSpace(CGFloat width) OVERRIDE; |
38 virtual bool IsDraggable() OVERRIDE; | 38 virtual bool IsDraggable() OVERRIDE; |
39 virtual NSPasteboard* GetDragPasteboard() OVERRIDE; | 39 virtual NSPasteboard* GetDragPasteboard() OVERRIDE; |
40 virtual NSImage* GetDragImage() OVERRIDE; | 40 virtual NSImage* GetDragImage() OVERRIDE; |
41 virtual NSRect GetDragImageFrame(NSRect frame) OVERRIDE; | 41 virtual NSRect GetDragImageFrame(NSRect frame) OVERRIDE; |
42 virtual bool OnMousePressed(NSRect frame) OVERRIDE; | 42 virtual bool OnMousePressed(NSRect frame) OVERRIDE; |
43 virtual bool AcceptsMousePress() OVERRIDE; | 43 virtual bool AcceptsMousePress() OVERRIDE; |
44 | 44 |
45 private: | 45 private: |
46 // The real label. BubbleDecoration's label may be elided. | 46 // The real label. BubbleDecoration's label may be elided. |
47 scoped_nsobject<NSString> full_label_; | 47 base::scoped_nsobject<NSString> full_label_; |
48 | 48 |
49 LocationIconDecoration* location_icon_; // weak, owned by location bar. | 49 LocationIconDecoration* location_icon_; // weak, owned by location bar. |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(EVBubbleDecoration); | 51 DISALLOW_COPY_AND_ASSIGN(EVBubbleDecoration); |
52 }; | 52 }; |
53 | 53 |
54 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_ | 54 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_ |
OLD | NEW |