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

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

Issue 1448433004: [MD] update EV bubble icon and location bar https icons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build.gn Created 5 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/ev_bubble_view.cc » ('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) 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 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_
7 7
8 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h" 8 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h"
9 #include "chrome/browser/ui/views/location_bar/page_info_helper.h" 9 #include "chrome/browser/ui/views/location_bar/page_info_helper.h"
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 // IconLabelBubbleView: 22 // IconLabelBubbleView:
23 SkColor GetTextColor() const override; 23 SkColor GetTextColor() const override;
24 SkColor GetBorderColor() const override; 24 SkColor GetBorderColor() const override;
25 25
26 // views::View: 26 // views::View:
27 gfx::Size GetMinimumSize() const override; 27 gfx::Size GetMinimumSize() const override;
28 bool OnMousePressed(const ui::MouseEvent& event) override; 28 bool OnMousePressed(const ui::MouseEvent& event) override;
29 void OnMouseReleased(const ui::MouseEvent& event) override; 29 void OnMouseReleased(const ui::MouseEvent& event) override;
30 void OnGestureEvent(ui::GestureEvent* event) override; 30 void OnGestureEvent(ui::GestureEvent* event) override;
31 void OnNativeThemeChanged(const ui::NativeTheme* native_theme) override;
31 32
32 // Returns what the minimum size would be if the label text were |text|. 33 // Returns what the minimum size would be if the label text were |text|.
33 gfx::Size GetMinimumSizeForLabelText(const base::string16& text) const; 34 gfx::Size GetMinimumSizeForLabelText(const base::string16& text) const;
34 35
35 private: 36 private:
36 // Returns what the minimum size would be if the preferred size were |size|. 37 // Returns what the minimum size would be if the preferred size were |size|.
37 gfx::Size GetMinimumSizeForPreferredSize(gfx::Size size) const; 38 gfx::Size GetMinimumSizeForPreferredSize(gfx::Size size) const;
38 39
39 // TODO(estade): this should be gleaned from the theme instead of hardcoded in 40 // TODO(estade): this should be gleaned from the theme instead of hardcoded in
40 // location_bar_view.cc and cached here. 41 // location_bar_view.cc and cached here.
41 SkColor text_color_; 42 SkColor text_color_;
42 43
43 PageInfoHelper page_info_helper_; 44 PageInfoHelper page_info_helper_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(EVBubbleView); 46 DISALLOW_COPY_AND_ASSIGN(EVBubbleView);
46 }; 47 };
47 48
48 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ 49 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/ev_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698