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

Side by Side Diff: ui/views/touchui/touch_selection_controller_impl.cc

Issue 248763003: MacViews: Better layering for the touch selection controller (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix derp Created 6 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 | Annotate | Revision Log
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/touchui/touch_selection_controller_impl.h" 5 #include "ui/views/touchui/touch_selection_controller_impl.h"
6 6
7 #include "base/time/time.h" 7 #include "base/time/time.h"
8 #include "grit/ui_resources.h" 8 #include "grit/ui_resources.h"
9 #include "grit/ui_strings.h" 9 #include "grit/ui_strings.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
11 #include "ui/base/ui_base_switches_util.h"
12 #include "ui/gfx/canvas.h" 11 #include "ui/gfx/canvas.h"
13 #include "ui/gfx/image/image.h" 12 #include "ui/gfx/image/image.h"
14 #include "ui/gfx/path.h" 13 #include "ui/gfx/path.h"
15 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
16 #include "ui/gfx/screen.h" 15 #include "ui/gfx/screen.h"
17 #include "ui/gfx/size.h" 16 #include "ui/gfx/size.h"
18 #include "ui/views/widget/widget.h" 17 #include "ui/views/widget/widget.h"
19 #include "ui/wm/core/masked_window_targeter.h" 18 #include "ui/wm/core/masked_window_targeter.h"
20 #include "ui/wm/core/shadow_types.h" 19 #include "ui/wm/core/shadow_types.h"
21 #include "ui/wm/core/window_animations.h" 20 #include "ui/wm/core/window_animations.h"
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 } 601 }
603 602
604 bool TouchSelectionControllerImpl::IsSelectionHandle2Visible() { 603 bool TouchSelectionControllerImpl::IsSelectionHandle2Visible() {
605 return selection_handle_2_->IsWidgetVisible(); 604 return selection_handle_2_->IsWidgetVisible();
606 } 605 }
607 606
608 bool TouchSelectionControllerImpl::IsCursorHandleVisible() { 607 bool TouchSelectionControllerImpl::IsCursorHandleVisible() {
609 return cursor_handle_->IsWidgetVisible(); 608 return cursor_handle_->IsWidgetVisible();
610 } 609 }
611 610
612 ViewsTouchSelectionControllerFactory::ViewsTouchSelectionControllerFactory() {
613 }
614
615 ui::TouchSelectionController* ViewsTouchSelectionControllerFactory::create(
616 ui::TouchEditable* client_view) {
617 if (switches::IsTouchEditingEnabled())
618 return new views::TouchSelectionControllerImpl(client_view);
619 return NULL;
620 }
621
622 } // namespace views 611 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/touchui/touch_selection_controller_impl.h ('k') | ui/views/touchui/touch_selection_controller_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698