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

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

Issue 7845033: Rework View Layer Draw() to use the Layer::DrawTree() method and the LayerDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « views/widget/root_view.cc ('k') | 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) 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 #ifndef VIEWS_WIDGET_WIDGET_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_H_
6 #define VIEWS_WIDGET_WIDGET_H_ 6 #define VIEWS_WIDGET_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <stack> 9 #include <stack>
10 10
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 compositor_factory_ = factory; 497 compositor_factory_ = factory;
498 } 498 }
499 static ui::Compositor* (*compositor_factory())() { 499 static ui::Compositor* (*compositor_factory())() {
500 return compositor_factory_; 500 return compositor_factory_;
501 } 501 }
502 502
503 const ui::Compositor* GetCompositor() const; 503 const ui::Compositor* GetCompositor() const;
504 ui::Compositor* GetCompositor(); 504 ui::Compositor* GetCompositor();
505 505
506 // Invokes method of same name on the NativeWidget. 506 // Invokes method of same name on the NativeWidget.
507 void MarkLayerDirty(); 507 void CalculateOffsetToAncestorWithLayer(gfx::Point* offset,
508 void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, View** ancestor); 508 ui::Layer** layer_parent);
509 509
510 // Notifies assistive technology that an accessibility event has 510 // Notifies assistive technology that an accessibility event has
511 // occurred on |view|, such as when the view is focused or when its 511 // occurred on |view|, such as when the view is focused or when its
512 // value changes. Pass true for |send_native_event| except for rare 512 // value changes. Pass true for |send_native_event| except for rare
513 // cases where the view is a native control that's already sending a 513 // cases where the view is a native control that's already sending a
514 // native accessibility event and the duplicate event would cause 514 // native accessibility event and the duplicate event would cause
515 // problems. 515 // problems.
516 void NotifyAccessibilityEvent( 516 void NotifyAccessibilityEvent(
517 View* view, 517 View* view,
518 ui::AccessibilityTypes::Event event_type, 518 ui::AccessibilityTypes::Event event_type,
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 731
732 // Tracks whether native widget has been initialized. 732 // Tracks whether native widget has been initialized.
733 bool native_widget_initialized_; 733 bool native_widget_initialized_;
734 734
735 DISALLOW_COPY_AND_ASSIGN(Widget); 735 DISALLOW_COPY_AND_ASSIGN(Widget);
736 }; 736 };
737 737
738 } // namespace views 738 } // namespace views
739 739
740 #endif // VIEWS_WIDGET_WIDGET_H_ 740 #endif // VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « views/widget/root_view.cc ('k') | views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698