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

Side by Side Diff: chrome/browser/ui/views/location_bar/ev_bubble_view.cc

Issue 16286003: Increase omnibox size by 2 px. Increase nominal font size in omnibox to 16 px. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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) 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/views/location_bar/ev_bubble_view.h" 5 #include "chrome/browser/ui/views/location_bar/ev_bubble_view.h"
6 #include "grit/theme_resources.h" 6 #include "grit/theme_resources.h"
7 #include "ui/views/painter.h" 7 #include "ui/views/painter.h"
8 8
9 9
10 namespace { 10 namespace {
11 const int kBackgroundImages[] = { 11 const int kBackgroundImages[] = IMAGE_GRID(IDR_OMNIBOX_EV_BUBBLE);
12 IDR_OMNIBOX_EV_BUBBLE_LEFT,
13 IDR_OMNIBOX_EV_BUBBLE_CENTER,
14 IDR_OMNIBOX_EV_BUBBLE_RIGHT,
15 };
16 } 12 }
17 13
18 14
19 EVBubbleView::EVBubbleView(const gfx::Font& font, 15 EVBubbleView::EVBubbleView(const gfx::Font& font,
20 int font_y_offset, 16 int font_y_offset,
21 SkColor text_color, 17 SkColor text_color,
22 SkColor parent_background_color, 18 SkColor parent_background_color,
23 LocationBarView* location_bar) 19 LocationBarView* location_bar)
24 : IconLabelBubbleView(kBackgroundImages, IDR_OMNIBOX_HTTPS_VALID, font, 20 : IconLabelBubbleView(kBackgroundImages, IDR_OMNIBOX_HTTPS_VALID, font,
25 font_y_offset, text_color, parent_background_color, 21 font_y_offset, text_color, parent_background_color,
(...skipping 21 matching lines...) Expand all
47 void EVBubbleView::OnMouseReleased(const ui::MouseEvent& event) { 43 void EVBubbleView::OnMouseReleased(const ui::MouseEvent& event) {
48 page_info_helper_.ProcessEvent(event); 44 page_info_helper_.ProcessEvent(event);
49 } 45 }
50 46
51 void EVBubbleView::OnGestureEvent(ui::GestureEvent* event) { 47 void EVBubbleView::OnGestureEvent(ui::GestureEvent* event) {
52 if (event->type() == ui::ET_GESTURE_TAP) { 48 if (event->type() == ui::ET_GESTURE_TAP) {
53 page_info_helper_.ProcessEvent(*event); 49 page_info_helper_.ProcessEvent(*event);
54 event->SetHandled(); 50 event->SetHandled();
55 } 51 }
56 } 52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698