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

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
« no previous file with comments | « views/widget/native_widget_win.h ('k') | views/widget/root_view.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_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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 } 548 }
549 549
550 const ui::Compositor* NativeWidgetWin::GetCompositor() const { 550 const ui::Compositor* NativeWidgetWin::GetCompositor() const {
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::CalculateOffsetToAncestorWithLayer(
559 } 559 gfx::Point* offset,
560 560 ui::Layer** layer_parent) {
561 void NativeWidgetWin::CalculateOffsetToAncestorWithLayer(gfx::Point* offset,
562 View** ancestor) {
563 } 561 }
564 562
565 void NativeWidgetWin::ViewRemoved(View* view) { 563 void NativeWidgetWin::ViewRemoved(View* view) {
566 if (drop_target_.get()) 564 if (drop_target_.get())
567 drop_target_->ResetTargetViewIfEquals(view); 565 drop_target_->ResetTargetViewIfEquals(view);
568 566
569 ClearAccessibilityViewEvent(view); 567 ClearAccessibilityViewEvent(view);
570 } 568 }
571 569
572 void NativeWidgetWin::SetNativeWindowProperty(const char* name, void* value) { 570 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) || 2558 return (GetKeyState(VK_LBUTTON) & 0x80) ||
2561 (GetKeyState(VK_RBUTTON) & 0x80) || 2559 (GetKeyState(VK_RBUTTON) & 0x80) ||
2562 (GetKeyState(VK_MBUTTON) & 0x80) || 2560 (GetKeyState(VK_MBUTTON) & 0x80) ||
2563 (GetKeyState(VK_XBUTTON1) & 0x80) || 2561 (GetKeyState(VK_XBUTTON1) & 0x80) ||
2564 (GetKeyState(VK_XBUTTON2) & 0x80); 2562 (GetKeyState(VK_XBUTTON2) & 0x80);
2565 } 2563 }
2566 2564
2567 } // namespace internal 2565 } // namespace internal
2568 2566
2569 } // namespace views 2567 } // namespace views
OLDNEW
« no previous file with comments | « 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