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

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: Rebase. 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
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_private.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 return aura::Env::GetInstance()->IsMouseButtonDown(); 1147 return aura::Env::GetInstance()->IsMouseButtonDown();
1144 } 1148 }
1145 1149
1146 // static 1150 // static
1147 bool NativeWidgetPrivate::IsTouchDown() { 1151 bool NativeWidgetPrivate::IsTouchDown() {
1148 return aura::Env::GetInstance()->is_touch_down(); 1152 return aura::Env::GetInstance()->is_touch_down();
1149 } 1153 }
1150 1154
1151 } // namespace internal 1155 } // namespace internal
1152 } // namespace views 1156 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698