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

Side by Side Diff: views/widget/native_widget_aura.cc

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/native_widget_aura.h ('k') | views/widget/native_widget_gtk.h » ('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 #include "views/widget/native_widget_aura.h" 5 #include "views/widget/native_widget_aura.h"
6 6
7 #include "aura/event.h" 7 #include "aura/event.h"
8 #include "aura/window.h" 8 #include "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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 104
105 const ui::Compositor* NativeWidgetAura::GetCompositor() const { 105 const ui::Compositor* NativeWidgetAura::GetCompositor() const {
106 return window_->layer()->compositor(); 106 return window_->layer()->compositor();
107 } 107 }
108 108
109 ui::Compositor* NativeWidgetAura::GetCompositor() { 109 ui::Compositor* NativeWidgetAura::GetCompositor() {
110 return window_->layer()->compositor(); 110 return window_->layer()->compositor();
111 } 111 }
112 112
113 void NativeWidgetAura::MarkLayerDirty() { 113 void NativeWidgetAura::CalculateOffsetToAncestorWithLayer(
114 //NOTIMPLEMENTED(); 114 gfx::Point* offset,
115 } 115 ui::Layer** layer_parent) {
116 116 if (layer_parent)
117 void NativeWidgetAura::CalculateOffsetToAncestorWithLayer(gfx::Point* offset, 117 *layer_parent = window_->layer();
118 View** ancestor) {
119 if (ancestor)
120 *ancestor = GetWidget()->GetRootView();
121 } 118 }
122 119
123 void NativeWidgetAura::ViewRemoved(View* view) { 120 void NativeWidgetAura::ViewRemoved(View* view) {
124 NOTIMPLEMENTED(); 121 NOTIMPLEMENTED();
125 } 122 }
126 123
127 void NativeWidgetAura::SetNativeWindowProperty(const char* name, void* value) { 124 void NativeWidgetAura::SetNativeWindowProperty(const char* name, void* value) {
128 NOTIMPLEMENTED(); 125 NOTIMPLEMENTED();
129 } 126 }
130 127
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 } 472 }
476 473
477 // static 474 // static
478 bool NativeWidgetPrivate::IsMouseButtonDown() { 475 bool NativeWidgetPrivate::IsMouseButtonDown() {
479 NOTIMPLEMENTED(); 476 NOTIMPLEMENTED();
480 return false; 477 return false;
481 } 478 }
482 479
483 } // namespace internal 480 } // namespace internal
484 } // namespace views 481 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/native_widget_aura.h ('k') | views/widget/native_widget_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698