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

Side by Side Diff: ash/wm/gestures/long_press_affordance_handler.cc

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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) 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/wm/gestures/long_press_affordance_handler.h" 5 #include "ash/wm/gestures/long_press_affordance_handler.h"
6 6
7 #include "ash/display/display_controller.h" 7 #include "ash/display/display_controller.h"
8 #include "ash/root_window_controller.h" 8 #include "ash/root_window_controller.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_window_ids.h" 10 #include "ash/shell_window_ids.h"
11 #include "third_party/skia/include/core/SkColor.h" 11 #include "third_party/skia/include/core/SkColor.h"
12 #include "third_party/skia/include/core/SkPaint.h" 12 #include "third_party/skia/include/core/SkPaint.h"
13 #include "third_party/skia/include/core/SkPath.h" 13 #include "third_party/skia/include/core/SkPath.h"
14 #include "third_party/skia/include/core/SkRect.h" 14 #include "third_party/skia/include/core/SkRect.h"
15 #include "third_party/skia/include/effects/SkGradientShader.h" 15 #include "third_party/skia/include/effects/SkGradientShader.h"
16 #include "ui/aura/client/screen_position_client.h" 16 #include "ui/aura/client/screen_position_client.h"
17 #include "ui/aura/window.h" 17 #include "ui/aura/window.h"
18 #include "ui/aura/window_event_dispatcher.h" 18 #include "ui/aura/window_event_dispatcher.h"
19 #include "ui/compositor/layer.h" 19 #include "ui/compositor/layer.h"
20 #include "ui/events/gestures/gesture_configuration.h" 20 #include "ui/events/gestures/gesture_configuration.h"
21 #include "ui/gfx/canvas.h" 21 #include "ui/gfx/canvas.h"
22 #include "ui/gfx/screen.h" 22 #include "ui/gfx/screen.h"
23 #include "ui/gfx/transform.h" 23 #include "ui/gfx/transform.h"
24 #include "ui/views/view.h" 24 #include "ui/views/view.h"
25 #include "ui/views/widget/widget.h" 25 #include "ui/views/widget/widget.h"
26 26
27 namespace ash { 27 namespace ash {
28 namespace internal {
29 namespace { 28 namespace {
30 29
31 const int kAffordanceOuterRadius = 60; 30 const int kAffordanceOuterRadius = 60;
32 const int kAffordanceInnerRadius = 50; 31 const int kAffordanceInnerRadius = 50;
33 32
34 // Angles from x-axis at which the outer and inner circles start. 33 // Angles from x-axis at which the outer and inner circles start.
35 const int kAffordanceOuterStartAngle = -109; 34 const int kAffordanceOuterStartAngle = -109;
36 const int kAffordanceInnerStartAngle = -65; 35 const int kAffordanceInnerStartAngle = -65;
37 36
38 const int kAffordanceGlowWidth = 20; 37 const int kAffordanceGlowWidth = 20;
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 SetTapDownTarget(NULL); 357 SetTapDownTarget(NULL);
359 break; 358 break;
360 } 359 }
361 } 360 }
362 361
363 void LongPressAffordanceHandler::OnWindowDestroying(aura::Window* window) { 362 void LongPressAffordanceHandler::OnWindowDestroying(aura::Window* window) {
364 DCHECK_EQ(tap_down_target_, window); 363 DCHECK_EQ(tap_down_target_, window);
365 StopAffordance(); 364 StopAffordance();
366 } 365 }
367 366
368 } // namespace internal
369 } // namespace ash 367 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/gestures/long_press_affordance_handler.h ('k') | ash/wm/gestures/overview_gesture_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698