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

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

Issue 1551133002: Convert Pass()→std::move() in //ash (CrOS edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 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 #include "ash/wm/cursor_manager_chromeos.h" 5 #include "ash/wm/cursor_manager_chromeos.h"
6 6
7 #include <utility>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "ui/events/event.h" 10 #include "ui/events/event.h"
9 #include "ui/keyboard/keyboard_util.h" 11 #include "ui/keyboard/keyboard_util.h"
10 #include "ui/wm/core/cursor_manager.h" 12 #include "ui/wm/core/cursor_manager.h"
11 #include "ui/wm/core/native_cursor_manager.h" 13 #include "ui/wm/core/native_cursor_manager.h"
12 14
13 namespace ash { 15 namespace ash {
14 16
15 CursorManager::CursorManager( 17 CursorManager::CursorManager(scoped_ptr<::wm::NativeCursorManager> delegate)
16 scoped_ptr< ::wm::NativeCursorManager> delegate) 18 : ::wm::CursorManager(std::move(delegate)) {}
17 : ::wm::CursorManager(delegate.Pass()) {
18 }
19 19
20 CursorManager::~CursorManager() { 20 CursorManager::~CursorManager() {
21 } 21 }
22 22
23 bool CursorManager::ShouldHideCursorOnKeyEvent( 23 bool CursorManager::ShouldHideCursorOnKeyEvent(
24 const ui::KeyEvent& event) const { 24 const ui::KeyEvent& event) const {
25 if (event.type() != ui::ET_KEY_PRESSED) 25 if (event.type() != ui::ET_KEY_PRESSED)
26 return false; 26 return false;
27 27
28 // Clicking on a key when the accessibility virtual keyboard is enabled should 28 // Clicking on a key when the accessibility virtual keyboard is enabled should
(...skipping 21 matching lines...) Expand all
50 case ui::VKEY_BRIGHTNESS_DOWN: 50 case ui::VKEY_BRIGHTNESS_DOWN:
51 case ui::VKEY_BRIGHTNESS_UP: 51 case ui::VKEY_BRIGHTNESS_UP:
52 case ui::VKEY_KBD_BRIGHTNESS_UP: 52 case ui::VKEY_KBD_BRIGHTNESS_UP:
53 case ui::VKEY_KBD_BRIGHTNESS_DOWN: 53 case ui::VKEY_KBD_BRIGHTNESS_DOWN:
54 return false; 54 return false;
55 default: 55 default:
56 return true; 56 return true;
57 } 57 }
58 } 58 }
59 } // namespace ash 59 } // namespace ash
OLDNEW
« no previous file with comments | « ash/virtual_keyboard_controller_unittest.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698