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

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

Issue 149474: Expand status bubble to accommodate long URLs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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 | « chrome/browser/gtk/status_bubble_gtk.h ('k') | chrome/browser/status_bubble.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 #include "chrome/browser/gtk/status_bubble_gtk.h" 5 #include "chrome/browser/gtk/status_bubble_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 } 203 }
204 204
205 if (y_offset_ != old_y_offset || flip_horizontally_ != old_flip_horizontally) 205 if (y_offset_ != old_y_offset || flip_horizontally_ != old_flip_horizontally)
206 gtk_widget_queue_resize_no_redraw(parent); 206 gtk_widget_queue_resize_no_redraw(parent);
207 } 207 }
208 208
209 void StatusBubbleGtk::UpdateDownloadShelfVisibility(bool visible) { 209 void StatusBubbleGtk::UpdateDownloadShelfVisibility(bool visible) {
210 download_shelf_is_visible_ = visible; 210 download_shelf_is_visible_ = visible;
211 } 211 }
212 212
213 void StatusBubbleGtk::SetBubbleWidth(int width) {
214 NOTIMPLEMENTED();
215 }
216
213 void StatusBubbleGtk::Observe(NotificationType type, 217 void StatusBubbleGtk::Observe(NotificationType type,
214 const NotificationSource& source, 218 const NotificationSource& source,
215 const NotificationDetails& details) { 219 const NotificationDetails& details) {
216 if (type == NotificationType::BROWSER_THEME_CHANGED) { 220 if (type == NotificationType::BROWSER_THEME_CHANGED) {
217 UserChangedTheme(); 221 UserChangedTheme();
218 } 222 }
219 } 223 }
220 224
221 void StatusBubbleGtk::InitWidgets() { 225 void StatusBubbleGtk::InitWidgets() {
222 bool ltr = !base::i18n::IsRTL(); 226 bool ltr = !base::i18n::IsRTL();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 gtk_util::ROUNDED_TOP_RIGHT, 295 gtk_util::ROUNDED_TOP_RIGHT,
292 gtk_util::BORDER_TOP | 296 gtk_util::BORDER_TOP |
293 (flip_horizontally ? gtk_util::BORDER_LEFT : gtk_util::BORDER_RIGHT)); 297 (flip_horizontally ? gtk_util::BORDER_LEFT : gtk_util::BORDER_RIGHT));
294 gtk_widget_queue_draw(container_.get()); 298 gtk_widget_queue_draw(container_.get());
295 } 299 }
296 300
297 gboolean StatusBubbleGtk::HandleMotionNotify(GdkEventMotion* event) { 301 gboolean StatusBubbleGtk::HandleMotionNotify(GdkEventMotion* event) {
298 MouseMoved(gfx::Point(event->x_root, event->y_root), false); 302 MouseMoved(gfx::Point(event->x_root, event->y_root), false);
299 return FALSE; 303 return FALSE;
300 } 304 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/status_bubble_gtk.h ('k') | chrome/browser/status_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698