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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 119753007: Add GrabWindowSnapshotAsync tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add windows snapshot async too Created 6 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/views/widget/desktop_aura/desktop_root_window_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h"
6 6
7 #include "base/win/metro.h" 7 #include "base/win/metro.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 content_window_(NULL), 80 content_window_(NULL),
81 drag_drop_client_(NULL), 81 drag_drop_client_(NULL),
82 should_animate_window_close_(false), 82 should_animate_window_close_(false),
83 pending_close_(false), 83 pending_close_(false),
84 has_non_client_view_(false), 84 has_non_client_view_(false),
85 tooltip_(NULL), 85 tooltip_(NULL),
86 is_cursor_visible_(true) { 86 is_cursor_visible_(true) {
87 } 87 }
88 88
89 DesktopRootWindowHostWin::~DesktopRootWindowHostWin() { 89 DesktopRootWindowHostWin::~DesktopRootWindowHostWin() {
90 DestroyCompositor();
90 // WARNING: |content_window_| has been destroyed by the time we get here. 91 // WARNING: |content_window_| has been destroyed by the time we get here.
91 desktop_native_widget_aura_->OnDesktopRootWindowHostDestroyed( 92 desktop_native_widget_aura_->OnDesktopRootWindowHostDestroyed(
92 root_window_); 93 root_window_);
93 } 94 }
94 95
95 // static 96 // static
96 aura::Window* DesktopRootWindowHostWin::GetContentWindowForHWND(HWND hwnd) { 97 aura::Window* DesktopRootWindowHostWin::GetContentWindowForHWND(HWND hwnd) {
97 aura::RootWindow* root = aura::RootWindow::GetForAcceleratedWidget(hwnd); 98 aura::RootWindow* root = aura::RootWindow::GetForAcceleratedWidget(hwnd);
98 return root ? root->window()->GetProperty(kContentWindowForRootWindow) : NULL; 99 return root ? root->window()->GetProperty(kContentWindowForRootWindow) : NULL;
99 } 100 }
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 975
975 // static 976 // static
976 DesktopRootWindowHost* DesktopRootWindowHost::Create( 977 DesktopRootWindowHost* DesktopRootWindowHost::Create(
977 internal::NativeWidgetDelegate* native_widget_delegate, 978 internal::NativeWidgetDelegate* native_widget_delegate,
978 DesktopNativeWidgetAura* desktop_native_widget_aura) { 979 DesktopNativeWidgetAura* desktop_native_widget_aura) {
979 return new DesktopRootWindowHostWin(native_widget_delegate, 980 return new DesktopRootWindowHostWin(native_widget_delegate,
980 desktop_native_widget_aura); 981 desktop_native_widget_aura);
981 } 982 }
982 983
983 } // namespace views 984 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698