OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SECURITY_STATE_BUBBLE_DECORATION_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SECURITY_STATE_BUBBLE_DECORATION_H_ |
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SECURITY_STATE_BUBBLE_DECORATION_H_ | 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SECURITY_STATE_BUBBLE_DECORATION_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void DrawWithBackgroundInFrame(NSRect background_frame, | 61 void DrawWithBackgroundInFrame(NSRect background_frame, |
62 NSRect frame, | 62 NSRect frame, |
63 NSView* control_view) override; | 63 NSView* control_view) override; |
64 bool IsDraggable() override; | 64 bool IsDraggable() override; |
65 NSPasteboard* GetDragPasteboard() override; | 65 NSPasteboard* GetDragPasteboard() override; |
66 NSImage* GetDragImage() override; | 66 NSImage* GetDragImage() override; |
67 NSRect GetDragImageFrame(NSRect frame) override; | 67 NSRect GetDragImageFrame(NSRect frame) override; |
68 bool OnMousePressed(NSRect frame, NSPoint location) override; | 68 bool OnMousePressed(NSRect frame, NSPoint location) override; |
69 bool AcceptsMousePress() override; | 69 bool AcceptsMousePress() override; |
70 NSPoint GetBubblePointInFrame(NSRect frame) override; | 70 NSPoint GetBubblePointInFrame(NSRect frame) override; |
| 71 NSString* GetToolTip() override; |
71 | 72 |
72 // BubbleDecoration: | 73 // BubbleDecoration: |
73 NSColor* GetBackgroundBorderColor() override; | 74 NSColor* GetBackgroundBorderColor() override; |
74 ui::NinePartImageIds GetBubbleImageIds() override; | 75 ui::NinePartImageIds GetBubbleImageIds() override; |
75 | 76 |
76 // gfx::AnimationDelegate: | 77 // gfx::AnimationDelegate: |
77 void AnimationProgressed(const gfx::Animation* animation) override; | 78 void AnimationProgressed(const gfx::Animation* animation) override; |
78 | 79 |
79 protected: | 80 protected: |
80 NSColor* GetDarkModeTextColor() override; | 81 NSColor* GetDarkModeTextColor() override; |
(...skipping 25 matching lines...) Expand all Loading... |
106 | 107 |
107 LocationBarViewMac* owner_; // weak | 108 LocationBarViewMac* owner_; // weak |
108 | 109 |
109 // Used to disable find bar animations when testing. | 110 // Used to disable find bar animations when testing. |
110 bool disable_animations_during_testing_; | 111 bool disable_animations_during_testing_; |
111 | 112 |
112 DISALLOW_COPY_AND_ASSIGN(SecurityStateBubbleDecoration); | 113 DISALLOW_COPY_AND_ASSIGN(SecurityStateBubbleDecoration); |
113 }; | 114 }; |
114 | 115 |
115 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SECURITY_STATE_BUBBLE_DECORATION
_H_ | 116 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_SECURITY_STATE_BUBBLE_DECORATION
_H_ |
OLD | NEW |