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

Side by Side Diff: views/widget/native_widget_win.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
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_win.h" 5 #include "views/widget/native_widget_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 return compositor_.get(); 551 return compositor_.get();
552 } 552 }
553 553
554 ui::Compositor* NativeWidgetWin::GetCompositor() { 554 ui::Compositor* NativeWidgetWin::GetCompositor() {
555 return compositor_.get(); 555 return compositor_.get();
556 } 556 }
557 557
558 void NativeWidgetWin::MarkLayerDirty() { 558 void NativeWidgetWin::MarkLayerDirty() {
559 } 559 }
560 560
561 void NativeWidgetWin::CalculateOffsetToAncestorWithLayer(gfx::Point* offset, 561 void NativeWidgetWin::CalculateOffsetToAncestorWithLayer(
562 View** ancestor) { 562 gfx::Point* offset,
563 ui::Layer** layer_parent) {
563 } 564 }
564 565
565 void NativeWidgetWin::ViewRemoved(View* view) { 566 void NativeWidgetWin::ViewRemoved(View* view) {
566 if (drop_target_.get()) 567 if (drop_target_.get())
567 drop_target_->ResetTargetViewIfEquals(view); 568 drop_target_->ResetTargetViewIfEquals(view);
568 569
569 ClearAccessibilityViewEvent(view); 570 ClearAccessibilityViewEvent(view);
570 } 571 }
571 572
572 void NativeWidgetWin::SetNativeWindowProperty(const char* name, void* value) { 573 void NativeWidgetWin::SetNativeWindowProperty(const char* name, void* value) {
(...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after
2560 return (GetKeyState(VK_LBUTTON) & 0x80) || 2561 return (GetKeyState(VK_LBUTTON) & 0x80) ||
2561 (GetKeyState(VK_RBUTTON) & 0x80) || 2562 (GetKeyState(VK_RBUTTON) & 0x80) ||
2562 (GetKeyState(VK_MBUTTON) & 0x80) || 2563 (GetKeyState(VK_MBUTTON) & 0x80) ||
2563 (GetKeyState(VK_XBUTTON1) & 0x80) || 2564 (GetKeyState(VK_XBUTTON1) & 0x80) ||
2564 (GetKeyState(VK_XBUTTON2) & 0x80); 2565 (GetKeyState(VK_XBUTTON2) & 0x80);
2565 } 2566 }
2566 2567
2567 } // namespace internal 2568 } // namespace internal
2568 2569
2569 } // namespace views 2570 } // namespace views
OLDNEW
« views/view.cc ('K') | « views/widget/native_widget_win.h ('k') | views/widget/root_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698