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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/location_bar_view_gtk.h" 5 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #include "ui/gfx/canvas_skia_paint.h" 77 #include "ui/gfx/canvas_skia_paint.h"
78 #include "ui/gfx/font.h" 78 #include "ui/gfx/font.h"
79 #include "ui/gfx/gtk_util.h" 79 #include "ui/gfx/gtk_util.h"
80 #include "ui/gfx/image/image.h" 80 #include "ui/gfx/image/image.h"
81 #include "webkit/glue/window_open_disposition.h" 81 #include "webkit/glue/window_open_disposition.h"
82 82
83 using content::NavigationEntry; 83 using content::NavigationEntry;
84 using content::OpenURLParams; 84 using content::OpenURLParams;
85 using content::WebContents; 85 using content::WebContents;
86 using extensions::ActionBoxController; 86 using extensions::ActionBoxController;
87 using extensions::Extension;
87 88
88 namespace { 89 namespace {
89 90
90 // We are positioned with a little bit of extra space that we don't use now. 91 // We are positioned with a little bit of extra space that we don't use now.
91 const int kTopMargin = 1; 92 const int kTopMargin = 1;
92 const int kBottomMargin = 1; 93 const int kBottomMargin = 1;
93 const int kLeftMargin = 1; 94 const int kLeftMargin = 1;
94 const int kRightMargin = 1; 95 const int kRightMargin = 1;
95 // We draw a border on the top and bottom (but not on left or right). 96 // We draw a border on the top and bottom (but not on left or right).
96 const int kBorderThickness = 1; 97 const int kBorderThickness = 1;
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after
1793 GdkModifierType modifier, 1794 GdkModifierType modifier,
1794 void* user_data) { 1795 void* user_data) {
1795 PageActionViewGtk* view = static_cast<PageActionViewGtk*>(user_data); 1796 PageActionViewGtk* view = static_cast<PageActionViewGtk*>(user_data);
1796 if (!gtk_widget_get_visible(view->widget())) 1797 if (!gtk_widget_get_visible(view->widget()))
1797 return FALSE; 1798 return FALSE;
1798 1799
1799 GdkEventButton event = {}; 1800 GdkEventButton event = {};
1800 event.button = 1; 1801 event.button = 1;
1801 return view->OnButtonPressed(view->widget(), &event); 1802 return view->OnButtonPressed(view->widget(), &event);
1802 } 1803 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698