OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |