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 "views/widget/native_widget_views.h" | 5 #include "views/widget/native_widget_views.h" |
6 | 6 |
7 #include "ui/gfx/compositor/compositor.h" | 7 #include "ui/gfx/compositor/compositor.h" |
8 #include "views/desktop/desktop_window_view.h" | 8 #include "views/desktop/desktop_window_view.h" |
9 #include "views/view.h" | 9 #include "views/view.h" |
10 #include "views/views_delegate.h" | 10 #include "views/views_delegate.h" |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 void NativeWidgetViews::Show() { | 273 void NativeWidgetViews::Show() { |
274 view_->SetVisible(true); | 274 view_->SetVisible(true); |
275 } | 275 } |
276 | 276 |
277 void NativeWidgetViews::Hide() { | 277 void NativeWidgetViews::Hide() { |
278 view_->SetVisible(false); | 278 view_->SetVisible(false); |
279 } | 279 } |
280 | 280 |
281 void NativeWidgetViews::ShowNativeWidget(ShowState state) { | 281 void NativeWidgetViews::ShowNativeWidget(ShowState state) { |
| 282 Show(); |
| 283 } |
| 284 |
| 285 void NativeWidgetViews::ShowMaximized(const gfx::Rect& restored_bounds) { |
| 286 Show(); |
282 } | 287 } |
283 | 288 |
284 bool NativeWidgetViews::IsVisible() const { | 289 bool NativeWidgetViews::IsVisible() const { |
285 return view_->IsVisible(); | 290 return view_->IsVisible(); |
286 } | 291 } |
287 | 292 |
288 void NativeWidgetViews::Activate() { | 293 void NativeWidgetViews::Activate() { |
289 NOTIMPLEMENTED(); | 294 NOTIMPLEMENTED(); |
290 } | 295 } |
291 | 296 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 view_->GetWidget()->native_widget()); | 405 view_->GetWidget()->native_widget()); |
401 } | 406 } |
402 | 407 |
403 const internal::NativeWidgetPrivate* | 408 const internal::NativeWidgetPrivate* |
404 NativeWidgetViews::GetParentNativeWidget() const { | 409 NativeWidgetViews::GetParentNativeWidget() const { |
405 return static_cast<const internal::NativeWidgetPrivate*>( | 410 return static_cast<const internal::NativeWidgetPrivate*>( |
406 view_->GetWidget()->native_widget()); | 411 view_->GetWidget()->native_widget()); |
407 } | 412 } |
408 | 413 |
409 } // namespace views | 414 } // namespace views |
OLD | NEW |