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

Unified Diff: ui/keyboard/keyboard_controller_unittest.cc

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/keyboard/keyboard_controller_proxy.cc ('k') | ui/keyboard/keyboard_layout_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_controller_unittest.cc
diff --git a/ui/keyboard/keyboard_controller_unittest.cc b/ui/keyboard/keyboard_controller_unittest.cc
index 51c4e0f1c2d48c36ba455919100e39605a9544cd..9c3ccb6592bc9629158259471a27f2e4007759ae 100644
--- a/ui/keyboard/keyboard_controller_unittest.cc
+++ b/ui/keyboard/keyboard_controller_unittest.cc
@@ -68,7 +68,7 @@ class TestFocusController : public ui::EventHandler {
private:
// Overridden from ui::EventHandler:
- virtual void OnEvent(ui::Event* event) OVERRIDE {
+ virtual void OnEvent(ui::Event* event) override {
aura::Window* target = static_cast<aura::Window*>(event->target());
if (event->type() == ui::ET_MOUSE_PRESSED ||
event->type() == ui::ET_TOUCH_PRESSED) {
@@ -92,8 +92,8 @@ class TestKeyboardControllerProxy : public KeyboardControllerProxy {
}
// Overridden from KeyboardControllerProxy:
- virtual bool HasKeyboardWindow() const OVERRIDE { return window_; }
- virtual aura::Window* GetKeyboardWindow() OVERRIDE {
+ virtual bool HasKeyboardWindow() const override { return window_; }
+ virtual aura::Window* GetKeyboardWindow() override {
if (!window_) {
window_.reset(new aura::Window(&delegate_));
window_->Init(aura::WINDOW_LAYER_NOT_DRAWN);
@@ -101,15 +101,15 @@ class TestKeyboardControllerProxy : public KeyboardControllerProxy {
}
return window_.get();
}
- virtual content::BrowserContext* GetBrowserContext() OVERRIDE { return NULL; }
- virtual ui::InputMethod* GetInputMethod() OVERRIDE {
+ virtual content::BrowserContext* GetBrowserContext() override { return NULL; }
+ virtual ui::InputMethod* GetInputMethod() override {
return input_method_.get();
}
virtual void RequestAudioInput(content::WebContents* web_contents,
const content::MediaStreamRequest& request,
- const content::MediaResponseCallback& callback) OVERRIDE { return; }
- virtual void LoadSystemKeyboard() OVERRIDE {};
- virtual void ReloadKeyboardIfNeeded() OVERRIDE {};
+ const content::MediaResponseCallback& callback) override { return; }
+ virtual void LoadSystemKeyboard() override {};
+ virtual void ReloadKeyboardIfNeeded() override {};
private:
scoped_ptr<aura::Window> window_;
@@ -131,7 +131,7 @@ class EventObserver : public ui::EventHandler {
private:
// Overridden from ui::EventHandler:
- virtual void OnEvent(ui::Event* event) OVERRIDE {
+ virtual void OnEvent(ui::Event* event) override {
ui::EventHandler::OnEvent(event);
event_counts_[event->type()]++;
}
@@ -151,7 +151,7 @@ class KeyboardContainerObserver : public aura::WindowObserver {
private:
virtual void OnWindowVisibilityChanged(aura::Window* window,
- bool visible) OVERRIDE {
+ bool visible) override {
if (!visible)
base::MessageLoop::current()->Quit();
}
@@ -168,7 +168,7 @@ class KeyboardControllerTest : public testing::Test {
KeyboardControllerTest() {}
virtual ~KeyboardControllerTest() {}
- virtual void SetUp() OVERRIDE {
+ virtual void SetUp() override {
// The ContextFactory must exist before any Compositors are created.
bool enable_pixel_output = false;
ui::ContextFactory* context_factory =
@@ -185,7 +185,7 @@ class KeyboardControllerTest : public testing::Test {
controller_.reset(new KeyboardController(proxy_));
}
- virtual void TearDown() OVERRIDE {
+ virtual void TearDown() override {
controller_.reset();
focus_controller_.reset();
if (::switches::IsTextInputFocusManagerEnabled())
@@ -499,7 +499,7 @@ class KeyboardControllerAnimationTest : public KeyboardControllerTest,
KeyboardControllerAnimationTest() {}
virtual ~KeyboardControllerAnimationTest() {}
- virtual void SetUp() OVERRIDE {
+ virtual void SetUp() override {
// We cannot short-circuit animations for this test.
ui::ScopedAnimationDurationScaleMode test_duration_mode(
ui::ScopedAnimationDurationScaleMode::NON_ZERO_DURATION);
@@ -512,14 +512,14 @@ class KeyboardControllerAnimationTest : public KeyboardControllerTest,
controller()->AddObserver(this);
}
- virtual void TearDown() OVERRIDE {
+ virtual void TearDown() override {
controller()->RemoveObserver(this);
KeyboardControllerTest::TearDown();
}
protected:
// KeyboardControllerObserver overrides
- virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE {
+ virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override {
notified_bounds_ = new_bounds;
}
« no previous file with comments | « ui/keyboard/keyboard_controller_proxy.cc ('k') | ui/keyboard/keyboard_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698