| 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 "ui/aura_shell/toplevel_frame_view.h" | 5 #include "ui/aura_shell/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/widget/widget.h" | |
| 14 #include "ui/views/widget/widget_delegate.h" | |
| 15 #include "views/controls/button/custom_button.h" | 13 #include "views/controls/button/custom_button.h" |
| 14 #include "views/widget/widget.h" |
| 15 #include "views/widget/widget_delegate.h" |
| 16 | 16 |
| 17 namespace aura_shell { | 17 namespace aura_shell { |
| 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); |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 return aura::kCursorNorthWestResize; | 487 return aura::kCursorNorthWestResize; |
| 488 case HTTOPRIGHT: | 488 case HTTOPRIGHT: |
| 489 return aura::kCursorNorthEastResize; | 489 return aura::kCursorNorthEastResize; |
| 490 default: | 490 default: |
| 491 return aura::kCursorNull; | 491 return aura::kCursorNull; |
| 492 } | 492 } |
| 493 } | 493 } |
| 494 | 494 |
| 495 } // namespace internal | 495 } // namespace internal |
| 496 } // namespace aura_shell | 496 } // namespace aura_shell |
| OLD | NEW |