summaryrefslogtreecommitdiffstats
path: root/ash/shell/lock_view.cc
diff options
context:
space:
mode:
authormostynb <mostynb@opera.com>2014-10-03 09:23:45 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-03 16:24:05 +0000
commit10d6b38a855066b1400d96d0600c6e2aec42cbf1 (patch)
tree8df573d9a31973c64cd9c50e9a2a6a6fa5c49e82 /ash/shell/lock_view.cc
parent90b32ca95485409ba5646c96a4ec0aa4b6216aee (diff)
downloadchromium_src-10d6b38a855066b1400d96d0600c6e2aec42cbf1.zip
chromium_src-10d6b38a855066b1400d96d0600c6e2aec42cbf1.tar.gz
chromium_src-10d6b38a855066b1400d96d0600c6e2aec42cbf1.tar.bz2
replace OVERRIDE and FINAL with override and final in ash/
BUG=417463 Review URL: https://codereview.chromium.org/621133002 Cr-Commit-Position: refs/heads/master@{#298040}
Diffstat (limited to 'ash/shell/lock_view.cc')
-rw-r--r--ash/shell/lock_view.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/ash/shell/lock_view.cc b/ash/shell/lock_view.cc
index ed2e75d..6125f40 100644
--- a/ash/shell/lock_view.cc
+++ b/ash/shell/lock_view.cc
@@ -35,13 +35,13 @@ class LockView : public views::WidgetDelegateView,
virtual ~LockView() {}
// Overridden from views::View:
- virtual gfx::Size GetPreferredSize() const OVERRIDE {
+ virtual gfx::Size GetPreferredSize() const override {
return gfx::Size(500, 400);
}
private:
// Overridden from views::View:
- virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
+ virtual void OnPaint(gfx::Canvas* canvas) override {
canvas->FillRect(GetLocalBounds(), SK_ColorYELLOW);
base::string16 text = base::ASCIIToUTF16("LOCKED!");
int string_width = gfx::GetStringWidth(text, font_list_);
@@ -50,7 +50,7 @@ class LockView : public views::WidgetDelegateView,
(height() - font_list_.GetHeight()) / 2,
string_width, font_list_.GetHeight()));
}
- virtual void Layout() OVERRIDE {
+ virtual void Layout() override {
gfx::Rect bounds = GetLocalBounds();
gfx::Size ps = unlock_button_->GetPreferredSize();
bounds.set_y(bounds.bottom() - ps.height() - 5);
@@ -59,19 +59,19 @@ class LockView : public views::WidgetDelegateView,
unlock_button_->SetBoundsRect(bounds);
}
virtual void ViewHierarchyChanged(
- const ViewHierarchyChangedDetails& details) OVERRIDE {
+ const ViewHierarchyChangedDetails& details) override {
if (details.is_add && details.child == this)
unlock_button_->RequestFocus();
}
// Overridden from views::WidgetDelegateView:
- virtual void WindowClosing() OVERRIDE {
+ virtual void WindowClosing() override {
Shell::GetInstance()->session_state_delegate()->UnlockScreen();
}
// Overridden from views::ButtonListener:
virtual void ButtonPressed(views::Button* sender,
- const ui::Event& event) OVERRIDE {
+ const ui::Event& event) override {
DCHECK(sender == unlock_button_);
GetWidget()->Close();
}