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

Side by Side Diff: ash/drag_drop/drag_drop_tracker.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
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/drag_drop/drag_drop_tracker.h" 5 #include "ash/drag_drop/drag_drop_tracker.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell_window_ids.h" 8 #include "ash/shell_window_ids.h"
9 #include "ash/wm/coordinate_conversion.h" 9 #include "ash/wm/coordinate_conversion.h"
10 #include "ui/aura/client/window_tree_client.h" 10 #include "ui/aura/client/window_tree_client.h"
11 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
12 #include "ui/aura/window_event_dispatcher.h" 12 #include "ui/aura/window_event_dispatcher.h"
13 #include "ui/events/event.h" 13 #include "ui/events/event.h"
14 #include "ui/gfx/screen.h" 14 #include "ui/gfx/screen.h"
15 #include "ui/wm/core/coordinate_conversion.h" 15 #include "ui/wm/core/coordinate_conversion.h"
16 #include "ui/wm/public/activation_delegate.h" 16 #include "ui/wm/public/activation_delegate.h"
17 17
18 namespace ash { 18 namespace ash {
19 namespace { 19 namespace {
20 20
21 // An activation delegate which disables activating the drag and drop window. 21 // An activation delegate which disables activating the drag and drop window.
22 class CaptureWindowActivationDelegate 22 class CaptureWindowActivationDelegate
23 : public aura::client::ActivationDelegate { 23 : public aura::client::ActivationDelegate {
24 public: 24 public:
25 CaptureWindowActivationDelegate() {} 25 CaptureWindowActivationDelegate() {}
26 virtual ~CaptureWindowActivationDelegate() {} 26 virtual ~CaptureWindowActivationDelegate() {}
27 27
28 // aura::client::ActivationDelegate overrides: 28 // aura::client::ActivationDelegate overrides:
29 virtual bool ShouldActivate() const OVERRIDE { 29 virtual bool ShouldActivate() const override {
30 return false; 30 return false;
31 } 31 }
32 32
33 private: 33 private:
34 34
35 DISALLOW_COPY_AND_ASSIGN(CaptureWindowActivationDelegate); 35 DISALLOW_COPY_AND_ASSIGN(CaptureWindowActivationDelegate);
36 }; 36 };
37 37
38 // Creates a window for capturing drag events. 38 // Creates a window for capturing drag events.
39 aura::Window* CreateCaptureWindow(aura::Window* context_root, 39 aura::Window* CreateCaptureWindow(aura::Window* context_root,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 &target_root_location); 95 &target_root_location);
96 return new ui::MouseEvent(event.type(), 96 return new ui::MouseEvent(event.type(),
97 target_location, 97 target_location,
98 target_root_location, 98 target_root_location,
99 event.flags(), 99 event.flags(),
100 static_cast<const ui::MouseEvent&>(event). 100 static_cast<const ui::MouseEvent&>(event).
101 changed_button_flags()); 101 changed_button_flags());
102 } 102 }
103 103
104 } // namespace ash 104 } // namespace ash
OLDNEW
« no previous file with comments | « ash/drag_drop/drag_drop_interactive_uitest.cc ('k') | ash/drag_drop/drag_drop_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698