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

Side by Side Diff: chrome/browser/ui/gtk/notifications/balloon_view_gtk.h

Issue 6384010: [gtk] fill in gap pixels in desktop notification corners (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc » ('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) 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 // Draws the view for the balloons. 5 // Draws the view for the balloons.
6 6
7 #ifndef CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ 7 #ifndef CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_
8 #define CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ 8 #define CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 int GetDesiredTotalWidth() const; 73 int GetDesiredTotalWidth() const;
74 int GetDesiredTotalHeight() const; 74 int GetDesiredTotalHeight() const;
75 75
76 // Where the balloon contents should be placed with respect to the top left 76 // Where the balloon contents should be placed with respect to the top left
77 // of the frame. 77 // of the frame.
78 gfx::Point GetContentsOffset() const; 78 gfx::Point GetContentsOffset() const;
79 79
80 // Where the balloon contents should be in screen coordinates. 80 // Where the balloon contents should be in screen coordinates.
81 gfx::Rect GetContentsRectangle() const; 81 gfx::Rect GetContentsRectangle() const;
82 82
83 CHROMEGTK_CALLBACK_1(BalloonViewImpl, gboolean, OnContentsExpose,
84 GdkEventExpose*);
83 CHROMEGTK_CALLBACK_0(BalloonViewImpl, void, OnCloseButton); 85 CHROMEGTK_CALLBACK_0(BalloonViewImpl, void, OnCloseButton);
84 CHROMEGTK_CALLBACK_1(BalloonViewImpl, gboolean, OnExpose, GdkEventExpose*); 86 CHROMEGTK_CALLBACK_1(BalloonViewImpl, gboolean, OnExpose, GdkEventExpose*);
85 CHROMEGTK_CALLBACK_0(BalloonViewImpl, void, OnOptionsMenuButton); 87 CHROMEGTK_CALLBACK_0(BalloonViewImpl, void, OnOptionsMenuButton);
86 CHROMEGTK_CALLBACK_0(BalloonViewImpl, gboolean, OnDestroy); 88 CHROMEGTK_CALLBACK_0(BalloonViewImpl, gboolean, OnDestroy);
87 89
88 // Non-owned pointer to the balloon which owns this object. 90 // Non-owned pointer to the balloon which owns this object.
89 Balloon* balloon_; 91 Balloon* balloon_;
90 92
91 GtkThemeProvider* theme_provider_; 93 GtkThemeProvider* theme_provider_;
92 94
(...skipping 28 matching lines...) Expand all
121 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; 123 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_;
122 // The button to open the options menu. 124 // The button to open the options menu.
123 scoped_ptr<CustomDrawButton> options_menu_button_; 125 scoped_ptr<CustomDrawButton> options_menu_button_;
124 126
125 NotificationRegistrar notification_registrar_; 127 NotificationRegistrar notification_registrar_;
126 128
127 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); 129 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl);
128 }; 130 };
129 131
130 #endif // CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ 132 #endif // CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698