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

Side by Side Diff: ui/views/widget/native_widget_aura.cc

Issue 136093007: Widget::ShouldUseNativeFrame is now meaningful on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Big refactor; fix Windows opaque windows when Glass is enabled. Created 6 years, 10 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/native_widget_aura.h" 5 #include "ui/views/widget/native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/activation_client.h" 10 #include "ui/aura/client/activation_client.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 NonClientFrameView* NativeWidgetAura::CreateNonClientFrameView() { 192 NonClientFrameView* NativeWidgetAura::CreateNonClientFrameView() {
193 return NULL; 193 return NULL;
194 } 194 }
195 195
196 bool NativeWidgetAura::ShouldUseNativeFrame() const { 196 bool NativeWidgetAura::ShouldUseNativeFrame() const {
197 // There is only one frame type for aura. 197 // There is only one frame type for aura.
198 return false; 198 return false;
199 } 199 }
200 200
201 bool NativeWidgetAura::ShouldWindowContentsBeTransparent() const {
202 return false;
203 }
204
201 void NativeWidgetAura::FrameTypeChanged() { 205 void NativeWidgetAura::FrameTypeChanged() {
202 // This is called when the Theme has changed; forward the event to the root 206 // This is called when the Theme has changed; forward the event to the root
203 // widget. 207 // widget.
204 GetWidget()->ThemeChanged(); 208 GetWidget()->ThemeChanged();
205 GetWidget()->GetRootView()->SchedulePaint(); 209 GetWidget()->GetRootView()->SchedulePaint();
206 } 210 }
207 211
208 Widget* NativeWidgetAura::GetWidget() { 212 Widget* NativeWidgetAura::GetWidget() {
209 return delegate_->AsWidget(); 213 return delegate_->AsWidget();
210 } 214 }
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 return aura::Env::GetInstance()->IsMouseButtonDown(); 1142 return aura::Env::GetInstance()->IsMouseButtonDown();
1139 } 1143 }
1140 1144
1141 // static 1145 // static
1142 bool NativeWidgetPrivate::IsTouchDown() { 1146 bool NativeWidgetPrivate::IsTouchDown() {
1143 return aura::Env::GetInstance()->is_touch_down(); 1147 return aura::Env::GetInstance()->is_touch_down();
1144 } 1148 }
1145 1149
1146 } // namespace internal 1150 } // namespace internal
1147 } // namespace views 1151 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698