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

Side by Side Diff: chrome/browser/gtk/status_bubble_gtk.h

Issue 5648004: Add the "virtual" keyword on method overrides that are missing it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing file Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/gtk/slide_animator_gtk.h ('k') | chrome/browser/history/history_backend.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_GTK_STATUS_BUBBLE_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_
6 #define CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_ 6 #define CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // AnimationDelegate implementation. 48 // AnimationDelegate implementation.
49 virtual void AnimationEnded(const Animation* animation); 49 virtual void AnimationEnded(const Animation* animation);
50 virtual void AnimationProgressed(const Animation* animation); 50 virtual void AnimationProgressed(const Animation* animation);
51 51
52 // Called when the download shelf becomes visible or invisible. 52 // Called when the download shelf becomes visible or invisible.
53 // This is used by to ensure that the status bubble does not obscure 53 // This is used by to ensure that the status bubble does not obscure
54 // the download shelf, when it is visible. 54 // the download shelf, when it is visible.
55 virtual void UpdateDownloadShelfVisibility(bool visible); 55 virtual void UpdateDownloadShelfVisibility(bool visible);
56 56
57 // Overridden from NotificationObserver: 57 // Overridden from NotificationObserver:
58 void Observe(NotificationType type, 58 virtual void Observe(NotificationType type,
59 const NotificationSource& source, 59 const NotificationSource& source,
60 const NotificationDetails& details); 60 const NotificationDetails& details);
61 61
62 // Top of the widget hierarchy for a StatusBubble. This top level widget is 62 // Top of the widget hierarchy for a StatusBubble. This top level widget is
63 // guarenteed to have its gtk_widget_name set to "status-bubble" for 63 // guarenteed to have its gtk_widget_name set to "status-bubble" for
64 // identification. 64 // identification.
65 GtkWidget* widget() { return container_.get(); } 65 GtkWidget* widget() { return container_.get(); }
66 66
67 private: 67 private:
68 // Sets the text of the label widget and controls visibility. (As contrasted 68 // Sets the text of the label widget and controls visibility. (As contrasted
69 // with setting the current status or URL text, which may be ignored for now). 69 // with setting the current status or URL text, which may be ignored for now).
70 void SetStatusTextTo(const std::string& status_utf8); 70 void SetStatusTextTo(const std::string& status_utf8);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 bool download_shelf_is_visible_; 157 bool download_shelf_is_visible_;
158 158
159 // 'location' and 'left_content' values from the last invocation of 159 // 'location' and 'left_content' values from the last invocation of
160 // MouseMoved(). We hang onto these so we can move the bubble if necessary 160 // MouseMoved(). We hang onto these so we can move the bubble if necessary
161 // when its text changes, triggering a size change. 161 // when its text changes, triggering a size change.
162 gfx::Point last_mouse_location_; 162 gfx::Point last_mouse_location_;
163 bool last_mouse_left_content_; 163 bool last_mouse_left_content_;
164 }; 164 };
165 165
166 #endif // CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_ 166 #endif // CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/slide_animator_gtk.h ('k') | chrome/browser/history/history_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698