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

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

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ORIGIN_CHIP_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ORIGIN_CHIP_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ORIGIN_CHIP_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ORIGIN_CHIP_VIEW_H_
7 7
8 #include "chrome/browser/safe_browsing/ui_manager.h" 8 #include "chrome/browser/safe_browsing/ui_manager.h"
9 #include "chrome/browser/ui/toolbar/toolbar_model.h" 9 #include "chrome/browser/ui/toolbar/toolbar_model.h"
10 #include "chrome/browser/ui/views/location_bar/location_icon_view.h" 10 #include "chrome/browser/ui/views/location_bar/location_icon_view.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // starts. When the EV cert name is not visible, this will always be 0; 61 // starts. When the EV cert name is not visible, this will always be 0;
62 // otherwise, it's a positive value equal to the width of the cert name plus 62 // otherwise, it's a positive value equal to the width of the cert name plus
63 // the space between the labels. 63 // the space between the labels.
64 int HostLabelOffset() const; 64 int HostLabelOffset() const;
65 65
66 // Returns the width of the origin chip from the start of the first label to 66 // Returns the width of the origin chip from the start of the first label to
67 // the trailing edge of the chip. 67 // the trailing edge of the chip.
68 int WidthFromStartOfLabels() const; 68 int WidthFromStartOfLabels() const;
69 69
70 // views::LabelButton: 70 // views::LabelButton:
71 virtual gfx::Size GetPreferredSize() const OVERRIDE; 71 virtual gfx::Size GetPreferredSize() const override;
72 virtual void Layout() OVERRIDE; 72 virtual void Layout() override;
73 73
74 private: 74 private:
75 // Returns the X coordinate the first label should be placed at. 75 // Returns the X coordinate the first label should be placed at.
76 int GetLabelX() const; 76 int GetLabelX() const;
77 77
78 // Sets an image grid to represent the current security state. 78 // Sets an image grid to represent the current security state.
79 void SetBorderImages(const int images[3][9]); 79 void SetBorderImages(const int images[3][9]);
80 80
81 // views::LabelButton: 81 // views::LabelButton:
82 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; 82 virtual void AnimationProgressed(const gfx::Animation* animation) override;
83 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; 83 virtual void AnimationEnded(const gfx::Animation* animation) override;
84 virtual void OnPaintBorder(gfx::Canvas* canvas) OVERRIDE; 84 virtual void OnPaintBorder(gfx::Canvas* canvas) override;
85 virtual void StateChanged() OVERRIDE; 85 virtual void StateChanged() override;
86 86
87 // views::ButtonListener: 87 // views::ButtonListener:
88 virtual void ButtonPressed(views::Button* sender, 88 virtual void ButtonPressed(views::Button* sender,
89 const ui::Event& event) OVERRIDE; 89 const ui::Event& event) override;
90 90
91 // SafeBrowsingUIManager::Observer: 91 // SafeBrowsingUIManager::Observer:
92 virtual void OnSafeBrowsingHit( 92 virtual void OnSafeBrowsingHit(
93 const SafeBrowsingUIManager::UnsafeResource& resource) OVERRIDE; 93 const SafeBrowsingUIManager::UnsafeResource& resource) override;
94 virtual void OnSafeBrowsingMatch( 94 virtual void OnSafeBrowsingMatch(
95 const SafeBrowsingUIManager::UnsafeResource& resource) OVERRIDE; 95 const SafeBrowsingUIManager::UnsafeResource& resource) override;
96 96
97 LocationBarView* location_bar_view_; 97 LocationBarView* location_bar_view_;
98 Profile* profile_; 98 Profile* profile_;
99 SkColor pressed_text_color_; 99 SkColor pressed_text_color_;
100 SkColor background_colors_[3]; 100 SkColor background_colors_[3];
101 views::Label* ev_label_; 101 views::Label* ev_label_;
102 views::Label* host_label_; 102 views::Label* host_label_;
103 LocationIconView* location_icon_view_; 103 LocationIconView* location_icon_view_;
104 bool showing_16x16_icon_; 104 bool showing_16x16_icon_;
105 scoped_ptr<OriginChipExtensionIcon> extension_icon_; 105 scoped_ptr<OriginChipExtensionIcon> extension_icon_;
106 gfx::SlideAnimation fade_in_animation_; 106 gfx::SlideAnimation fade_in_animation_;
107 GURL url_displayed_; 107 GURL url_displayed_;
108 ToolbarModel::SecurityLevel security_level_; 108 ToolbarModel::SecurityLevel security_level_;
109 bool url_malware_; 109 bool url_malware_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(OriginChipView); 111 DISALLOW_COPY_AND_ASSIGN(OriginChipView);
112 }; 112 };
113 113
114 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ORIGIN_CHIP_VIEW_H_ 114 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ORIGIN_CHIP_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698