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_aura.h" | 5 #include "views/widget/native_widget_aura.h" |
6 | 6 |
7 #include "ui/aura/event.h" | 7 #include "ui/aura/event.h" |
8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
9 #include "ui/gfx/canvas.h" | 9 #include "ui/gfx/canvas.h" |
10 #include "ui/gfx/compositor/layer.h" | 10 #include "ui/gfx/compositor/layer.h" |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 } | 464 } |
465 | 465 |
466 // static | 466 // static |
467 NativeWidgetPrivate* NativeWidgetPrivate::GetTopLevelNativeWidget( | 467 NativeWidgetPrivate* NativeWidgetPrivate::GetTopLevelNativeWidget( |
468 gfx::NativeView native_view) { | 468 gfx::NativeView native_view) { |
469 if (!native_view) | 469 if (!native_view) |
470 return NULL; | 470 return NULL; |
471 aura::Window* toplevel = native_view; | 471 aura::Window* toplevel = native_view; |
472 aura::Window* parent = native_view->parent(); | 472 aura::Window* parent = native_view->parent(); |
473 while (parent) { | 473 while (parent) { |
474 if (parent->IsTopLevelWindowContainer()) | 474 if (parent->IsToplevelWindowContainer()) |
475 return GetNativeWidgetForNativeView(toplevel); | 475 return GetNativeWidgetForNativeView(toplevel); |
476 toplevel = parent; | 476 toplevel = parent; |
477 parent = parent->parent(); | 477 parent = parent->parent(); |
478 } | 478 } |
479 return NULL; | 479 return NULL; |
480 } | 480 } |
481 | 481 |
482 // static | 482 // static |
483 void NativeWidgetPrivate::GetAllChildWidgets(gfx::NativeView native_view, | 483 void NativeWidgetPrivate::GetAllChildWidgets(gfx::NativeView native_view, |
484 Widget::Widgets* children) { | 484 Widget::Widgets* children) { |
485 NOTIMPLEMENTED(); | 485 NOTIMPLEMENTED(); |
486 } | 486 } |
487 | 487 |
488 // static | 488 // static |
489 void NativeWidgetPrivate::ReparentNativeView(gfx::NativeView native_view, | 489 void NativeWidgetPrivate::ReparentNativeView(gfx::NativeView native_view, |
490 gfx::NativeView new_parent) { | 490 gfx::NativeView new_parent) { |
491 NOTIMPLEMENTED(); | 491 NOTIMPLEMENTED(); |
492 } | 492 } |
493 | 493 |
494 // static | 494 // static |
495 bool NativeWidgetPrivate::IsMouseButtonDown() { | 495 bool NativeWidgetPrivate::IsMouseButtonDown() { |
496 NOTIMPLEMENTED(); | 496 NOTIMPLEMENTED(); |
497 return false; | 497 return false; |
498 } | 498 } |
499 | 499 |
500 } // namespace internal | 500 } // namespace internal |
501 } // namespace views | 501 } // namespace views |
OLD | NEW |