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

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

Issue 115153002: wm: public window_types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_native_widget_aura.h" 5 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "ui/aura/client/activation_client.h" 9 #include "ui/aura/client/activation_client.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 virtual ~DesktopNativeWidgetAuraWindowTreeClient() { 154 virtual ~DesktopNativeWidgetAuraWindowTreeClient() {
155 aura::client::SetWindowTreeClient(root_window_, NULL); 155 aura::client::SetWindowTreeClient(root_window_, NULL);
156 } 156 }
157 157
158 // Overridden from client::WindowTreeClient: 158 // Overridden from client::WindowTreeClient:
159 virtual aura::Window* GetDefaultParent(aura::Window* context, 159 virtual aura::Window* GetDefaultParent(aura::Window* context,
160 aura::Window* window, 160 aura::Window* window,
161 const gfx::Rect& bounds) OVERRIDE { 161 const gfx::Rect& bounds) OVERRIDE {
162 bool is_fullscreen = window->GetProperty(aura::client::kShowStateKey) == 162 bool is_fullscreen = window->GetProperty(aura::client::kShowStateKey) ==
163 ui::SHOW_STATE_FULLSCREEN; 163 ui::SHOW_STATE_FULLSCREEN;
164 bool is_menu = window->type() == aura::client::WINDOW_TYPE_MENU; 164 bool is_menu = window->type() == ui::wm::WINDOW_TYPE_MENU;
165 if (is_fullscreen || is_menu) { 165 if (is_fullscreen || is_menu) {
166 return DesktopNativeWidgetTopLevelHandler::CreateParentWindow( 166 return DesktopNativeWidgetTopLevelHandler::CreateParentWindow(
167 window, bounds, is_fullscreen); 167 window, bounds, is_fullscreen);
168 } 168 }
169 return root_window_; 169 return root_window_;
170 } 170 }
171 171
172 private: 172 private:
173 aura::Window* root_window_; 173 aura::Window* root_window_;
174 174
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 input_method_event_filter_->SetInputMethodPropertyInRootWindow( 1109 input_method_event_filter_->SetInputMethodPropertyInRootWindow(
1110 root_window_->window()); 1110 root_window_->window());
1111 root_window_event_filter_->AddHandler(input_method_event_filter_.get()); 1111 root_window_event_filter_->AddHandler(input_method_event_filter_.get());
1112 } 1112 }
1113 1113
1114 void DesktopNativeWidgetAura::UpdateWindowTransparency() { 1114 void DesktopNativeWidgetAura::UpdateWindowTransparency() {
1115 content_window_->SetTransparent(ShouldUseNativeFrame()); 1115 content_window_->SetTransparent(ShouldUseNativeFrame());
1116 } 1116 }
1117 1117
1118 } // namespace views 1118 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698