| OLD | NEW |
| 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_EV_BUBBLE_DECORATION_H_ | 5 #ifndef CHROME_BROWSER_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_ |
| 6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_ | 6 #define CHROME_BROWSER_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/cocoa/location_bar/bubble_decoration.h" | 10 #include "chrome/browser/cocoa/location_bar/bubble_decoration.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class LocationIconDecoration; | 21 class LocationIconDecoration; |
| 22 | 22 |
| 23 class EVBubbleDecoration : public BubbleDecoration { | 23 class EVBubbleDecoration : public BubbleDecoration { |
| 24 public: | 24 public: |
| 25 EVBubbleDecoration(LocationIconDecoration* location_icon, NSFont* font); | 25 EVBubbleDecoration(LocationIconDecoration* location_icon, NSFont* font); |
| 26 | 26 |
| 27 // Implement |LocationBarDecoration|. | 27 // Implement |LocationBarDecoration|. |
| 28 virtual bool IsDraggable(); | 28 virtual bool IsDraggable(); |
| 29 virtual NSPasteboard* GetDragPasteboard(); | 29 virtual NSPasteboard* GetDragPasteboard(); |
| 30 virtual NSImage* GetDragImage(); | 30 virtual NSImage* GetDragImage(); |
| 31 virtual NSRect GetDragImageFrame(NSRect frame) { |
| 32 return GetImageRectInFrame(frame); |
| 33 } |
| 31 virtual bool OnMousePressed(NSRect frame); | 34 virtual bool OnMousePressed(NSRect frame); |
| 32 virtual bool AcceptsMousePress() { return true; } | 35 virtual bool AcceptsMousePress() { return true; } |
| 33 | 36 |
| 34 private: | 37 private: |
| 35 LocationIconDecoration* location_icon_; // weak, owned by location bar. | 38 LocationIconDecoration* location_icon_; // weak, owned by location bar. |
| 36 | 39 |
| 37 DISALLOW_COPY_AND_ASSIGN(EVBubbleDecoration); | 40 DISALLOW_COPY_AND_ASSIGN(EVBubbleDecoration); |
| 38 }; | 41 }; |
| 39 | 42 |
| 40 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_ | 43 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_ |
| OLD | NEW |