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

Side by Side Diff: ash/test/ash_test_base.cc

Issue 621133002: replace OVERRIDE and FINAL with override and final in ash/ (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
« no previous file with comments | « ash/test/ash_test_base.h ('k') | ash/test/ash_test_helper_unittest.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 #include "ash/test/ash_test_base.h" 5 #include "ash/test/ash_test_base.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_switches.h" 10 #include "ash/ash_switches.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 namespace { 56 namespace {
57 57
58 class AshEventGeneratorDelegate 58 class AshEventGeneratorDelegate
59 : public aura::test::EventGeneratorDelegateAura { 59 : public aura::test::EventGeneratorDelegateAura {
60 public: 60 public:
61 AshEventGeneratorDelegate() {} 61 AshEventGeneratorDelegate() {}
62 virtual ~AshEventGeneratorDelegate() {} 62 virtual ~AshEventGeneratorDelegate() {}
63 63
64 // aura::test::EventGeneratorDelegateAura overrides: 64 // aura::test::EventGeneratorDelegateAura overrides:
65 virtual aura::WindowTreeHost* GetHostAt( 65 virtual aura::WindowTreeHost* GetHostAt(
66 const gfx::Point& point_in_screen) const OVERRIDE { 66 const gfx::Point& point_in_screen) const override {
67 gfx::Screen* screen = Shell::GetScreen(); 67 gfx::Screen* screen = Shell::GetScreen();
68 gfx::Display display = screen->GetDisplayNearestPoint(point_in_screen); 68 gfx::Display display = screen->GetDisplayNearestPoint(point_in_screen);
69 return Shell::GetInstance()->display_controller()-> 69 return Shell::GetInstance()->display_controller()->
70 GetRootWindowForDisplayId(display.id())->GetHost(); 70 GetRootWindowForDisplayId(display.id())->GetHost();
71 } 71 }
72 72
73 virtual aura::client::ScreenPositionClient* GetScreenPositionClient( 73 virtual aura::client::ScreenPositionClient* GetScreenPositionClient(
74 const aura::Window* window) const OVERRIDE { 74 const aura::Window* window) const override {
75 return aura::client::GetScreenPositionClient(window->GetRootWindow()); 75 return aura::client::GetScreenPositionClient(window->GetRootWindow());
76 } 76 }
77 77
78 private: 78 private:
79 DISALLOW_COPY_AND_ASSIGN(AshEventGeneratorDelegate); 79 DISALLOW_COPY_AND_ASSIGN(AshEventGeneratorDelegate);
80 }; 80 };
81 81
82 } // namespace 82 } // namespace
83 83
84 ///////////////////////////////////////////////////////////////////////////// 84 /////////////////////////////////////////////////////////////////////////////
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 330
331 void AshTestBase::UnblockUserSession() { 331 void AshTestBase::UnblockUserSession() {
332 Shell::GetInstance()->session_state_delegate()->UnlockScreen(); 332 Shell::GetInstance()->session_state_delegate()->UnlockScreen();
333 SetSessionStarted(true); 333 SetSessionStarted(true);
334 SetUserAddingScreenRunning(false); 334 SetUserAddingScreenRunning(false);
335 } 335 }
336 336
337 337
338 } // namespace test 338 } // namespace test
339 } // namespace ash 339 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/ash_test_base.h ('k') | ash/test/ash_test_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698