OLD | NEW |
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/common/frame/custom_frame_view_ash.h" | 5 #include "ash/frame/custom_frame_view_ash.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/common/frame/caption_buttons/frame_caption_button_container_view.h
" | 10 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" |
11 #include "ash/common/frame/frame_border_hit_test.h" | 11 #include "ash/frame/frame_border_hit_test.h" |
12 #include "ash/common/frame/header_view.h" | 12 #include "ash/frame/header_view.h" |
13 #include "ash/common/wm/window_state.h" | |
14 #include "ash/common/wm/window_state_delegate.h" | |
15 #include "ash/common/wm/window_state_observer.h" | |
16 #include "ash/common/wm_shell.h" | |
17 #include "ash/common/wm_window.h" | |
18 #include "ash/shared/immersive_fullscreen_controller.h" | 13 #include "ash/shared/immersive_fullscreen_controller.h" |
19 #include "ash/shared/immersive_fullscreen_controller_delegate.h" | 14 #include "ash/shared/immersive_fullscreen_controller_delegate.h" |
| 15 #include "ash/wm/window_state.h" |
| 16 #include "ash/wm/window_state_delegate.h" |
| 17 #include "ash/wm/window_state_observer.h" |
| 18 #include "ash/wm_shell.h" |
| 19 #include "ash/wm_window.h" |
20 #include "ui/aura/client/aura_constants.h" | 20 #include "ui/aura/client/aura_constants.h" |
21 #include "ui/aura/window.h" | 21 #include "ui/aura/window.h" |
22 #include "ui/aura/window_observer.h" | 22 #include "ui/aura/window_observer.h" |
23 #include "ui/gfx/geometry/rect.h" | 23 #include "ui/gfx/geometry/rect.h" |
24 #include "ui/gfx/geometry/rect_conversions.h" | 24 #include "ui/gfx/geometry/rect_conversions.h" |
25 #include "ui/gfx/geometry/size.h" | 25 #include "ui/gfx/geometry/size.h" |
26 #include "ui/views/view.h" | 26 #include "ui/views/view.h" |
27 #include "ui/views/view_targeter.h" | 27 #include "ui/views/view_targeter.h" |
28 #include "ui/views/widget/widget.h" | 28 #include "ui/views/widget/widget.h" |
29 #include "ui/views/widget/widget_delegate.h" | 29 #include "ui/views/widget/widget_delegate.h" |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 FrameCaptionButtonContainerView* | 353 FrameCaptionButtonContainerView* |
354 CustomFrameViewAsh::GetFrameCaptionButtonContainerViewForTest() { | 354 CustomFrameViewAsh::GetFrameCaptionButtonContainerViewForTest() { |
355 return header_view_->caption_button_container(); | 355 return header_view_->caption_button_container(); |
356 } | 356 } |
357 | 357 |
358 int CustomFrameViewAsh::NonClientTopBorderHeight() const { | 358 int CustomFrameViewAsh::NonClientTopBorderHeight() const { |
359 return frame_->IsFullscreen() ? 0 : header_view_->GetPreferredHeight(); | 359 return frame_->IsFullscreen() ? 0 : header_view_->GetPreferredHeight(); |
360 } | 360 } |
361 | 361 |
362 } // namespace ash | 362 } // namespace ash |
OLD | NEW |