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

Side by Side Diff: ui/views/views_delegate.cc

Issue 798683003: Rename old Aura TouchSelectionController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fixes Created 6 years 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 | « ui/views/views_delegate.h ('k') | ui/views/views_touch_selection_controller_factory.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "ui/views/views_delegate.h" 5 #include "ui/views/views_delegate.h"
6 6
7 #include "ui/views/views_touch_selection_controller_factory.h" 7 #include "ui/views/views_touch_selection_controller_factory.h"
8 8
9 namespace views { 9 namespace views {
10 10
11 ViewsDelegate::ViewsDelegate() 11 ViewsDelegate::ViewsDelegate()
12 : views_tsc_factory_(new ViewsTouchSelectionControllerFactory) { 12 : views_tsc_factory_(new ViewsTouchEditingControllerFactory) {
13 ui::TouchSelectionControllerFactory::SetInstance(views_tsc_factory_.get()); 13 ui::TouchEditingControllerFactory::SetInstance(views_tsc_factory_.get());
14 } 14 }
15 15
16 ViewsDelegate::~ViewsDelegate() { 16 ViewsDelegate::~ViewsDelegate() {
17 ui::TouchSelectionControllerFactory::SetInstance(NULL); 17 ui::TouchEditingControllerFactory::SetInstance(NULL);
18 } 18 }
19 19
20 void ViewsDelegate::SaveWindowPlacement(const Widget* widget, 20 void ViewsDelegate::SaveWindowPlacement(const Widget* widget,
21 const std::string& window_name, 21 const std::string& window_name,
22 const gfx::Rect& bounds, 22 const gfx::Rect& bounds,
23 ui::WindowShowState show_state) { 23 ui::WindowShowState show_state) {
24 } 24 }
25 25
26 bool ViewsDelegate::GetSavedWindowPlacement( 26 bool ViewsDelegate::GetSavedWindowPlacement(
27 const Widget* widget, 27 const Widget* widget,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 #if defined(OS_WIN) 88 #if defined(OS_WIN)
89 int ViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor, 89 int ViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor,
90 const base::Closure& callback) { 90 const base::Closure& callback) {
91 return EDGE_BOTTOM; 91 return EDGE_BOTTOM;
92 } 92 }
93 #endif 93 #endif
94 94
95 } // namespace views 95 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/views_delegate.h ('k') | ui/views/views_touch_selection_controller_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698