| OLD | NEW |
| 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 Loading... |
| 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 void NativeWidgetAura::FrameTypeChanged() { | 201 void NativeWidgetAura::FrameTypeChanged(Widget::FrameType /*new_type*/) { |
| 202 // This is called when the Theme has changed; forward the event to the root | 202 // This is called when the Theme has changed; forward the event to the root |
| 203 // widget. | 203 // widget. |
| 204 GetWidget()->ThemeChanged(); | 204 GetWidget()->ThemeChanged(); |
| 205 GetWidget()->GetRootView()->SchedulePaint(); | 205 GetWidget()->GetRootView()->SchedulePaint(); |
| 206 } | 206 } |
| 207 | 207 |
| 208 Widget* NativeWidgetAura::GetWidget() { | 208 Widget* NativeWidgetAura::GetWidget() { |
| 209 return delegate_->AsWidget(); | 209 return delegate_->AsWidget(); |
| 210 } | 210 } |
| 211 | 211 |
| (...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 return aura::Env::GetInstance()->IsMouseButtonDown(); | 1138 return aura::Env::GetInstance()->IsMouseButtonDown(); |
| 1139 } | 1139 } |
| 1140 | 1140 |
| 1141 // static | 1141 // static |
| 1142 bool NativeWidgetPrivate::IsTouchDown() { | 1142 bool NativeWidgetPrivate::IsTouchDown() { |
| 1143 return aura::Env::GetInstance()->is_touch_down(); | 1143 return aura::Env::GetInstance()->is_touch_down(); |
| 1144 } | 1144 } |
| 1145 | 1145 |
| 1146 } // namespace internal | 1146 } // namespace internal |
| 1147 } // namespace views | 1147 } // namespace views |
| OLD | NEW |