| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/toplevel_frame_view.h" | 5 #include "ash/wm/toplevel_frame_view.h" |
| 6 | 6 |
| 7 #include "grit/ui_resources.h" | 7 #include "grit/ui_resources.h" |
| 8 #include "ui/aura/cursor.h" | 8 #include "ui/aura/cursor.h" |
| 9 #include "ui/base/animation/throb_animation.h" | 9 #include "ui/base/animation/throb_animation.h" |
| 10 #include "ui/base/hit_test.h" | 10 #include "ui/base/hit_test.h" |
| 11 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
| 12 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
| 13 #include "ui/views/controls/button/custom_button.h" | 13 #include "ui/views/controls/button/custom_button.h" |
| 14 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
| 15 #include "ui/views/widget/widget_delegate.h" | 15 #include "ui/views/widget/widget_delegate.h" |
| 16 | 16 |
| 17 namespace aura_shell { | 17 namespace ash { |
| 18 namespace internal { | 18 namespace internal { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 // The thickness of the left, right and bottom edges of the frame. | 21 // The thickness of the left, right and bottom edges of the frame. |
| 22 const int kFrameBorderThickness = 8; | 22 const int kFrameBorderThickness = 8; |
| 23 const int kFrameOpacity = 50; | 23 const int kFrameOpacity = 50; |
| 24 // The color used to fill the frame. | 24 // The color used to fill the frame. |
| 25 const SkColor kFrameColor = SkColorSetARGB(kFrameOpacity, 0, 0, 0); | 25 const SkColor kFrameColor = SkColorSetARGB(kFrameOpacity, 0, 0, 0); |
| 26 const int kFrameBorderHiddenOpacity = 0; | 26 const int kFrameBorderHiddenOpacity = 0; |
| 27 const int kFrameBorderVisibleOpacity = kFrameOpacity; | 27 const int kFrameBorderVisibleOpacity = kFrameOpacity; |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 case HTTOPLEFT: | 477 case HTTOPLEFT: |
| 478 return aura::kCursorNorthWestResize; | 478 return aura::kCursorNorthWestResize; |
| 479 case HTTOPRIGHT: | 479 case HTTOPRIGHT: |
| 480 return aura::kCursorNorthEastResize; | 480 return aura::kCursorNorthEastResize; |
| 481 default: | 481 default: |
| 482 return aura::kCursorNull; | 482 return aura::kCursorNull; |
| 483 } | 483 } |
| 484 } | 484 } |
| 485 | 485 |
| 486 } // namespace internal | 486 } // namespace internal |
| 487 } // namespace aura_shell | 487 } // namespace ash |
| OLD | NEW |