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

Side by Side Diff: ash/wm/cursor_manager_chromeos.h

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 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/wm/boot_splash_screen_chromeos.h ('k') | ash/wm/cursor_manager_chromeos.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 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 ASH_WM_CURSOR_MANAGER_CHROMEOS_H_ 5 #ifndef ASH_WM_CURSOR_MANAGER_CHROMEOS_H_
6 #define ASH_WM_CURSOR_MANAGER_CHROMEOS_H_ 6 #define ASH_WM_CURSOR_MANAGER_CHROMEOS_H_
7 7
8 #include <memory>
9
8 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "ui/wm/core/cursor_manager.h" 13 #include "ui/wm/core/cursor_manager.h"
13 #include "ui/wm/core/native_cursor_manager_delegate.h" 14 #include "ui/wm/core/native_cursor_manager_delegate.h"
14 15
15 namespace ui { 16 namespace ui {
16 class KeyEvent; 17 class KeyEvent;
17 } 18 }
18 19
19 namespace wm { 20 namespace wm {
20 class NativeCursorManager; 21 class NativeCursorManager;
21 } 22 }
22 23
23 namespace ash { 24 namespace ash {
24 25
25 // This class overrides the cursor hiding behaviour on ChromeOS. The cursor is 26 // This class overrides the cursor hiding behaviour on ChromeOS. The cursor is
26 // hidden on certain key events only if the accessibility keyboard is not 27 // hidden on certain key events only if the accessibility keyboard is not
27 // enabled. 28 // enabled.
28 class ASH_EXPORT CursorManager : public ::wm::CursorManager { 29 class ASH_EXPORT CursorManager : public ::wm::CursorManager {
29 public: 30 public:
30 explicit CursorManager( 31 explicit CursorManager(std::unique_ptr<::wm::NativeCursorManager> delegate);
31 scoped_ptr< ::wm::NativeCursorManager> delegate);
32 ~CursorManager() override; 32 ~CursorManager() override;
33 33
34 // aura::client::CursorClient: 34 // aura::client::CursorClient:
35 bool ShouldHideCursorOnKeyEvent(const ui::KeyEvent& event) const override; 35 bool ShouldHideCursorOnKeyEvent(const ui::KeyEvent& event) const override;
36 36
37 private: 37 private:
38 DISALLOW_COPY_AND_ASSIGN(CursorManager); 38 DISALLOW_COPY_AND_ASSIGN(CursorManager);
39 }; 39 };
40 40
41 } // namespace ash 41 } // namespace ash
42 42
43 #endif // ASH_WM_CURSOR_MANAGER_CHROMEOS_H_ 43 #endif // ASH_WM_CURSOR_MANAGER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ash/wm/boot_splash_screen_chromeos.h ('k') | ash/wm/cursor_manager_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698