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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add two more const for Windows. Created 6 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 | 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 #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
11 class LocationBarView; 11 class LocationBarView;
12 12
13 // EVBubbleView displays the EV Bubble in the LocationBarView. 13 // EVBubbleView displays the EV Bubble in the LocationBarView.
14 class EVBubbleView : public IconLabelBubbleView { 14 class EVBubbleView : public IconLabelBubbleView {
15 public: 15 public:
16 EVBubbleView(const gfx::FontList& font_list, 16 EVBubbleView(const gfx::FontList& font_list,
17 SkColor text_color, 17 SkColor text_color,
18 SkColor parent_background_color, 18 SkColor parent_background_color,
19 LocationBarView* parent); 19 LocationBarView* parent);
20 virtual ~EVBubbleView(); 20 virtual ~EVBubbleView();
21 21
22 // Overridden from View. 22 // Overridden from View.
23 virtual gfx::Size GetMinimumSize() OVERRIDE; 23 virtual gfx::Size GetMinimumSize() const OVERRIDE;
24 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 24 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
25 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 25 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
26 26
27 // Overridden from ui::EventHandler. 27 // Overridden from ui::EventHandler.
28 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 28 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
29 29
30 private: 30 private:
31 PageInfoHelper page_info_helper_; 31 PageInfoHelper page_info_helper_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(EVBubbleView); 33 DISALLOW_COPY_AND_ASSIGN(EVBubbleView);
34 }; 34 };
35 35
36 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_ 36 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_EV_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698