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

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

Issue 115153002: wm: public window_types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ozone deps Created 7 years 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 aura::client::CursorClient* cursor_client = 155 aura::client::CursorClient* cursor_client =
156 aura::client::GetCursorClient(root_window_->window()); 156 aura::client::GetCursorClient(root_window_->window());
157 if (cursor_client) 157 if (cursor_client)
158 is_cursor_visible_ = cursor_client->IsCursorVisible(); 158 is_cursor_visible_ = cursor_client->IsCursorVisible();
159 159
160 root_window_->window()->SetProperty(kContentWindowForRootWindow, 160 root_window_->window()->SetProperty(kContentWindowForRootWindow,
161 content_window_); 161 content_window_);
162 root_window_->window()->SetProperty(kDesktopRootWindowHostKey, this); 162 root_window_->window()->SetProperty(kDesktopRootWindowHostKey, this);
163 163
164 should_animate_window_close_ = 164 should_animate_window_close_ =
165 content_window_->type() != aura::client::WINDOW_TYPE_NORMAL && 165 content_window_->type() != ui::wm::WINDOW_TYPE_NORMAL &&
166 !views::corewm::WindowAnimationsDisabled(content_window_); 166 !views::corewm::WindowAnimationsDisabled(content_window_);
167 167
168 // TODO this is not invoked *after* Init(), but should be ok. 168 // TODO this is not invoked *after* Init(), but should be ok.
169 SetWindowTransparency(); 169 SetWindowTransparency();
170 } 170 }
171 171
172 scoped_ptr<corewm::Tooltip> DesktopRootWindowHostWin::CreateTooltip() { 172 scoped_ptr<corewm::Tooltip> DesktopRootWindowHostWin::CreateTooltip() {
173 DCHECK(!tooltip_); 173 DCHECK(!tooltip_);
174 tooltip_ = new corewm::TooltipWin(GetAcceleratedWidget()); 174 tooltip_ = new corewm::TooltipWin(GetAcceleratedWidget());
175 return scoped_ptr<corewm::Tooltip>(tooltip_); 175 return scoped_ptr<corewm::Tooltip>(tooltip_);
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 972
973 // static 973 // static
974 DesktopRootWindowHost* DesktopRootWindowHost::Create( 974 DesktopRootWindowHost* DesktopRootWindowHost::Create(
975 internal::NativeWidgetDelegate* native_widget_delegate, 975 internal::NativeWidgetDelegate* native_widget_delegate,
976 DesktopNativeWidgetAura* desktop_native_widget_aura) { 976 DesktopNativeWidgetAura* desktop_native_widget_aura) {
977 return new DesktopRootWindowHostWin(native_widget_delegate, 977 return new DesktopRootWindowHostWin(native_widget_delegate,
978 desktop_native_widget_aura); 978 desktop_native_widget_aura);
979 } 979 }
980 980
981 } // namespace views 981 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698