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

Side by Side Diff: chrome/browser/ui/gtk/info_bubble_gtk.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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/info_bubble_gtk.h" 5 #include "chrome/browser/ui/gtk/info_bubble_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" 12 #include "chrome/browser/ui/gtk/gtk_theme_provider.h"
13 #include "chrome/browser/ui/gtk/gtk_util.h" 13 #include "chrome/browser/ui/gtk/gtk_util.h"
14 #include "chrome/browser/ui/gtk/info_bubble_accelerators_gtk.h" 14 #include "chrome/browser/ui/gtk/info_bubble_accelerators_gtk.h"
15 #include "chrome/common/notification_service.h" 15 #include "chrome/common/notification_service.h"
16 #include "gfx/gtk_util.h" 16 #include "ui/gfx/gtk_util.h"
17 #include "gfx/path.h" 17 #include "ui/gfx/path.h"
18 #include "gfx/rect.h" 18 #include "ui/gfx/rect.h"
19 19
20 namespace { 20 namespace {
21 21
22 // The height of the arrow, and the width will be about twice the height. 22 // The height of the arrow, and the width will be about twice the height.
23 const int kArrowSize = 8; 23 const int kArrowSize = 8;
24 24
25 // Number of pixels to the middle of the arrow from the close edge of the 25 // Number of pixels to the middle of the arrow from the close edge of the
26 // window. 26 // window.
27 const int kArrowX = 18; 27 const int kArrowX = 18;
28 28
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 gboolean InfoBubbleGtk::OnToplevelUnmap(GtkWidget* widget, GdkEvent* event) { 526 gboolean InfoBubbleGtk::OnToplevelUnmap(GtkWidget* widget, GdkEvent* event) {
527 Close(); 527 Close();
528 return FALSE; 528 return FALSE;
529 } 529 }
530 530
531 void InfoBubbleGtk::OnAnchorAllocate(GtkWidget* widget, 531 void InfoBubbleGtk::OnAnchorAllocate(GtkWidget* widget,
532 GtkAllocation* allocation) { 532 GtkAllocation* allocation) {
533 if (!UpdateArrowLocation(false)) 533 if (!UpdateArrowLocation(false))
534 MoveWindow(); 534 MoveWindow();
535 } 535 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/info_bubble_gtk.h ('k') | chrome/browser/ui/gtk/infobars/infobar_arrow_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698