| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/header_view.h" | 5 #include "ash/common/frame/header_view.h" |
| 6 | 6 |
| 7 #include "ash/common/frame/caption_buttons/frame_caption_button_container_view.h
" | 7 #include "ash/common/frame/caption_buttons/frame_caption_button_container_view.h
" |
| 8 #include "ash/common/frame/default_header_painter.h" | 8 #include "ash/common/frame/default_header_painter.h" |
| 9 #include "ash/common/material_design/material_design_controller.h" | 9 #include "ash/common/material_design/material_design_controller.h" |
| 10 #include "ash/common/session/session_state_delegate.h" | 10 #include "ash/common/session/session_state_delegate.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 caption_button_container_->UpdateSizeButtonVisibility(); | 144 caption_button_container_->UpdateSizeButtonVisibility(); |
| 145 parent()->Layout(); | 145 parent()->Layout(); |
| 146 } | 146 } |
| 147 | 147 |
| 148 views::View* HeaderView::avatar_icon() const { | 148 views::View* HeaderView::avatar_icon() const { |
| 149 return avatar_icon_; | 149 return avatar_icon_; |
| 150 } | 150 } |
| 151 | 151 |
| 152 /////////////////////////////////////////////////////////////////////////////// | 152 /////////////////////////////////////////////////////////////////////////////// |
| 153 // HeaderView, | 153 // HeaderView, |
| 154 // WmImmersiveFullscreenControllerDelegate overrides: | 154 // ImmersiveFullscreenControllerDelegate overrides: |
| 155 | 155 |
| 156 void HeaderView::OnImmersiveRevealStarted() { | 156 void HeaderView::OnImmersiveRevealStarted() { |
| 157 fullscreen_visible_fraction_ = 0; | 157 fullscreen_visible_fraction_ = 0; |
| 158 SetPaintToLayer(true); | 158 SetPaintToLayer(true); |
| 159 layer()->SetFillsBoundsOpaquely(false); | 159 layer()->SetFillsBoundsOpaquely(false); |
| 160 parent()->Layout(); | 160 parent()->Layout(); |
| 161 } | 161 } |
| 162 | 162 |
| 163 void HeaderView::OnImmersiveRevealEnded() { | 163 void HeaderView::OnImmersiveRevealEnded() { |
| 164 fullscreen_visible_fraction_ = 0; | 164 fullscreen_visible_fraction_ = 0; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 184 gfx::Rect visible_bounds(GetVisibleBounds()); | 184 gfx::Rect visible_bounds(GetVisibleBounds()); |
| 185 gfx::Point visible_origin_in_screen(visible_bounds.origin()); | 185 gfx::Point visible_origin_in_screen(visible_bounds.origin()); |
| 186 views::View::ConvertPointToScreen(this, &visible_origin_in_screen); | 186 views::View::ConvertPointToScreen(this, &visible_origin_in_screen); |
| 187 std::vector<gfx::Rect> bounds_in_screen; | 187 std::vector<gfx::Rect> bounds_in_screen; |
| 188 bounds_in_screen.push_back( | 188 bounds_in_screen.push_back( |
| 189 gfx::Rect(visible_origin_in_screen, visible_bounds.size())); | 189 gfx::Rect(visible_origin_in_screen, visible_bounds.size())); |
| 190 return bounds_in_screen; | 190 return bounds_in_screen; |
| 191 } | 191 } |
| 192 | 192 |
| 193 } // namespace ash | 193 } // namespace ash |
| OLD | NEW |