Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: ui/views/widget/widget.h

Issue 15922004: Rename Widget::CalculateOffsetToAncestorWithLayer() to Widget::GetLayer() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/root_view.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 const_cast<const Widget*>(this)->client_view()); 563 const_cast<const Widget*>(this)->client_view());
564 } 564 }
565 const ClientView* client_view() const { 565 const ClientView* client_view() const {
566 // non_client_view_ may be NULL, especially during creation. 566 // non_client_view_ may be NULL, especially during creation.
567 return non_client_view_ ? non_client_view_->client_view() : NULL; 567 return non_client_view_ ? non_client_view_->client_view() : NULL;
568 } 568 }
569 569
570 const ui::Compositor* GetCompositor() const; 570 const ui::Compositor* GetCompositor() const;
571 ui::Compositor* GetCompositor(); 571 ui::Compositor* GetCompositor();
572 572
573 // Invokes method of same name on the NativeWidget. 573 // Returns the widget's layer, if any.
574 gfx::Vector2d CalculateOffsetToAncestorWithLayer( 574 ui::Layer* GetLayer();
575 ui::Layer** layer_parent);
576
577 // Invokes method of same name on the NativeWidget.
578 void ReorderLayers();
579 575
580 // Schedules an update to the root layers. The actual processing occurs when 576 // Schedules an update to the root layers. The actual processing occurs when
581 // GetRootLayers() is invoked. 577 // GetRootLayers() is invoked.
582 void UpdateRootLayers(); 578 void UpdateRootLayers();
583 579
584 const NativeWidget* native_widget() const; 580 const NativeWidget* native_widget() const;
585 NativeWidget* native_widget(); 581 NativeWidget* native_widget();
586 582
587 internal::NativeWidgetPrivate* native_widget_private() { 583 internal::NativeWidgetPrivate* native_widget_private() {
588 return native_widget_; 584 return native_widget_;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 // True when window movement via mouse interaction with the frame should be 829 // True when window movement via mouse interaction with the frame should be
834 // disabled. 830 // disabled.
835 bool movement_disabled_; 831 bool movement_disabled_;
836 832
837 DISALLOW_COPY_AND_ASSIGN(Widget); 833 DISALLOW_COPY_AND_ASSIGN(Widget);
838 }; 834 };
839 835
840 } // namespace views 836 } // namespace views
841 837
842 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 838 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/root_view.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698