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

Side by Side Diff: chrome/browser/ui/gtk/bubble/bubble_gtk.cc

Issue 7737001: content: Start splitting up chrome/browser/ui/gtk/gtk_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
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 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" 5 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/ui/gtk/bubble/bubble_accelerators_gtk.h" 10 #include "chrome/browser/ui/gtk/bubble/bubble_accelerators_gtk.h"
11 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 11 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
12 #include "chrome/browser/ui/gtk/gtk_util.h" 12 #include "chrome/browser/ui/gtk/gtk_util.h"
13 #include "chrome/common/chrome_notification_types.h" 13 #include "chrome/common/chrome_notification_types.h"
14 #include "content/common/notification_service.h" 14 #include "content/common/notification_service.h"
15 #include "ui/base/gtk/gtk_hig_constants.h"
15 #include "ui/base/gtk/gtk_windowing.h" 16 #include "ui/base/gtk/gtk_windowing.h"
16 #include "ui/gfx/gtk_util.h" 17 #include "ui/gfx/gtk_util.h"
17 #include "ui/gfx/path.h" 18 #include "ui/gfx/path.h"
18 #include "ui/gfx/rect.h" 19 #include "ui/gfx/rect.h"
19 20
20 namespace { 21 namespace {
21 22
22 // The height of the arrow, and the width will be about twice the height. 23 // The height of the arrow, and the width will be about twice the height.
23 const int kArrowSize = 8; 24 const int kArrowSize = 8;
24 25
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 gboolean BubbleGtk::OnToplevelUnmap(GtkWidget* widget, GdkEvent* event) { 525 gboolean BubbleGtk::OnToplevelUnmap(GtkWidget* widget, GdkEvent* event) {
525 Close(); 526 Close();
526 return FALSE; 527 return FALSE;
527 } 528 }
528 529
529 void BubbleGtk::OnAnchorAllocate(GtkWidget* widget, 530 void BubbleGtk::OnAnchorAllocate(GtkWidget* widget,
530 GtkAllocation* allocation) { 531 GtkAllocation* allocation) {
531 if (!UpdateArrowLocation(false)) 532 if (!UpdateArrowLocation(false))
532 MoveWindow(); 533 MoveWindow();
533 } 534 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/certificate_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698