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

Side by Side Diff: chrome/browser/ui/cocoa/status_bubble_mac.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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) 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_STATUS_BUBBLE_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_STATUS_BUBBLE_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_STATUS_BUBBLE_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_STATUS_BUBBLE_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
(...skipping 15 matching lines...) Expand all
26 enum StatusBubbleState { 26 enum StatusBubbleState {
27 kBubbleHidden, // Fully hidden 27 kBubbleHidden, // Fully hidden
28 kBubbleShowingTimer, // Waiting to fade in 28 kBubbleShowingTimer, // Waiting to fade in
29 kBubbleShowingFadeIn, // In a fade-in transition 29 kBubbleShowingFadeIn, // In a fade-in transition
30 kBubbleShown, // Fully visible 30 kBubbleShown, // Fully visible
31 kBubbleHidingTimer, // Waiting to fade out 31 kBubbleHidingTimer, // Waiting to fade out
32 kBubbleHidingFadeOut // In a fade-out transition 32 kBubbleHidingFadeOut // In a fade-out transition
33 }; 33 };
34 34
35 StatusBubbleMac(NSWindow* parent, id delegate); 35 StatusBubbleMac(NSWindow* parent, id delegate);
36 virtual ~StatusBubbleMac(); 36 ~StatusBubbleMac() override;
37 37
38 // StatusBubble implementation. 38 // StatusBubble implementation.
39 virtual void SetStatus(const base::string16& status) override; 39 void SetStatus(const base::string16& status) override;
40 virtual void SetURL(const GURL& url, const std::string& languages) override; 40 void SetURL(const GURL& url, const std::string& languages) override;
41 virtual void Hide() override; 41 void Hide() override;
42 virtual void MouseMoved(const gfx::Point& location, 42 void MouseMoved(const gfx::Point& location, bool left_content) override;
43 bool left_content) override; 43 void UpdateDownloadShelfVisibility(bool visible) override;
44 virtual void UpdateDownloadShelfVisibility(bool visible) override;
45 44
46 // Mac-specific method: Update the size and position of the status bubble to 45 // Mac-specific method: Update the size and position of the status bubble to
47 // match the parent window. Safe to call even when the status bubble does not 46 // match the parent window. Safe to call even when the status bubble does not
48 // exist. 47 // exist.
49 void UpdateSizeAndPosition(); 48 void UpdateSizeAndPosition();
50 49
51 // Mac-specific method: Change the parent window of the status bubble. Safe to 50 // Mac-specific method: Change the parent window of the status bubble. Safe to
52 // call even when the status bubble does not exist. 51 // call even when the status bubble does not exist.
53 void SwitchParentWindow(NSWindow* parent); 52 void SwitchParentWindow(NSWindow* parent);
54 53
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 @interface NSObject(StatusBubbleDelegate) 191 @interface NSObject(StatusBubbleDelegate)
193 // Called to query the delegate about the frame StatusBubble should position 192 // Called to query the delegate about the frame StatusBubble should position
194 // itself in. Frame is returned in the parent window coordinates. 193 // itself in. Frame is returned in the parent window coordinates.
195 - (NSRect)statusBubbleBaseFrame; 194 - (NSRect)statusBubbleBaseFrame;
196 195
197 // Called from SetState to notify the delegate of state changes. 196 // Called from SetState to notify the delegate of state changes.
198 - (void)statusBubbleWillEnterState:(StatusBubbleMac::StatusBubbleState)state; 197 - (void)statusBubbleWillEnterState:(StatusBubbleMac::StatusBubbleState)state;
199 @end 198 @end
200 199
201 #endif // CHROME_BROWSER_UI_COCOA_STATUS_BUBBLE_MAC_H_ 200 #endif // CHROME_BROWSER_UI_COCOA_STATUS_BUBBLE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698