| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef ATHENA_ACTIVITY_ACTIVITY_FRAME_VIEW_H_ | 5 #ifndef ATHENA_ACTIVITY_ACTIVITY_FRAME_VIEW_H_ |
| 6 #define ATHENA_ACTIVITY_ACTIVITY_FRAME_VIEW_H_ | 6 #define ATHENA_ACTIVITY_ACTIVITY_FRAME_VIEW_H_ |
| 7 | 7 |
| 8 #include "athena/wm/public/window_manager_observer.h" | 8 #include "athena/wm/public/window_manager_observer.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "ui/gfx/insets.h" | 9 #include "ui/gfx/insets.h" |
| 11 #include "ui/views/window/non_client_view.h" | 10 #include "ui/views/window/non_client_view.h" |
| 12 | 11 |
| 13 namespace views { | 12 namespace views { |
| 14 class ImageView; | 13 class ImageView; |
| 15 class Label; | 14 class Label; |
| 16 class Widget; | 15 class Widget; |
| 17 } | 16 } |
| 18 | 17 |
| 19 namespace athena { | 18 namespace athena { |
| 20 | 19 |
| 21 class ActivityViewModel; | 20 class ActivityViewModel; |
| 22 | 21 |
| 23 // A NonClientFrameView used for activity. | 22 // A NonClientFrameView used for activity. |
| 24 class ActivityFrameView : public views::NonClientFrameView, | 23 class ActivityFrameView : public views::NonClientFrameView, |
| 25 public WindowManagerObserver { | 24 public WindowManagerObserver { |
| 26 public: | 25 public: |
| 27 // Internal class name. | 26 // The frame class name. |
| 28 static const char kViewClassName[]; | 27 static const char kViewClassName[]; |
| 29 | 28 |
| 30 ActivityFrameView(views::Widget* frame, ActivityViewModel* view_model); | 29 ActivityFrameView(views::Widget* frame, ActivityViewModel* view_model); |
| 31 virtual ~ActivityFrameView(); | 30 virtual ~ActivityFrameView(); |
| 32 | 31 |
| 33 // views::NonClientFrameView: | 32 // views::NonClientFrameView: |
| 34 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 33 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 35 virtual gfx::Rect GetWindowBoundsForClientBounds( | 34 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 36 const gfx::Rect& client_bounds) const OVERRIDE; | 35 const gfx::Rect& client_bounds) const OVERRIDE; |
| 37 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 36 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 66 | 65 |
| 67 // Whether overview mode is active. | 66 // Whether overview mode is active. |
| 68 bool in_overview_; | 67 bool in_overview_; |
| 69 | 68 |
| 70 DISALLOW_COPY_AND_ASSIGN(ActivityFrameView); | 69 DISALLOW_COPY_AND_ASSIGN(ActivityFrameView); |
| 71 }; | 70 }; |
| 72 | 71 |
| 73 } // namespace athena | 72 } // namespace athena |
| 74 | 73 |
| 75 #endif // ATHENA_ACTIVITY_ACTIVITY_FRAME_VIEW_H_ | 74 #endif // ATHENA_ACTIVITY_ACTIVITY_FRAME_VIEW_H_ |
| OLD | NEW |