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 "chrome/browser/ui/views/frame/app_non_client_frame_view_ash.h" | 5 #include "chrome/browser/ui/views/frame/app_non_client_frame_view_ash.h" |
6 | 6 |
7 #include "ash/shell_delegate.h" | 7 #include "ash/shell_delegate.h" |
8 #include "ash/wm/workspace/frame_maximize_button.h" | 8 #include "ash/wm/workspace/frame_maximize_button.h" |
9 #include "base/debug/stack_trace.h" | 9 #include "base/debug/stack_trace.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 gfx::Rect AppNonClientFrameViewAsh::GetBoundsForClientView() const { | 237 gfx::Rect AppNonClientFrameViewAsh::GetBoundsForClientView() const { |
238 return GetLocalBounds(); | 238 return GetLocalBounds(); |
239 } | 239 } |
240 | 240 |
241 gfx::Rect AppNonClientFrameViewAsh::GetWindowBoundsForClientBounds( | 241 gfx::Rect AppNonClientFrameViewAsh::GetWindowBoundsForClientBounds( |
242 const gfx::Rect& client_bounds) const { | 242 const gfx::Rect& client_bounds) const { |
243 return client_bounds; | 243 return client_bounds; |
244 } | 244 } |
245 | 245 |
246 int AppNonClientFrameViewAsh::NonClientHitTest( | 246 int AppNonClientFrameViewAsh::NonClientHitTest( |
247 const gfx::Point& point) { | 247 const gfx::Point& point) const { |
248 return HTNOWHERE; | 248 return HTNOWHERE; |
249 } | 249 } |
250 | 250 |
251 void AppNonClientFrameViewAsh::GetWindowMask(const gfx::Size& size, | 251 void AppNonClientFrameViewAsh::GetWindowMask(const gfx::Size& size, |
252 gfx::Path* window_mask) { | 252 gfx::Path* window_mask) { |
253 } | 253 } |
254 | 254 |
255 void AppNonClientFrameViewAsh::ResetWindowControls() { | 255 void AppNonClientFrameViewAsh::ResetWindowControls() { |
256 } | 256 } |
257 | 257 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 base::i18n::IsRTL() ? 0 : (width() - preferred.width()), 0, | 296 base::i18n::IsRTL() ? 0 : (width() - preferred.width()), 0, |
297 preferred.width(), preferred.height()); | 297 preferred.width(), preferred.height()); |
298 } | 298 } |
299 | 299 |
300 void AppNonClientFrameViewAsh::CloseControlWidget() { | 300 void AppNonClientFrameViewAsh::CloseControlWidget() { |
301 if (control_widget_) { | 301 if (control_widget_) { |
302 control_widget_->Close(); | 302 control_widget_->Close(); |
303 control_widget_ = NULL; | 303 control_widget_ = NULL; |
304 } | 304 } |
305 } | 305 } |
OLD | NEW |