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/string_util.h" | 8 #include "base/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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 } | 217 } |
218 | 218 |
219 aura::client::SetActivationDelegate(window_, this); | 219 aura::client::SetActivationDelegate(window_, this); |
220 } | 220 } |
221 | 221 |
222 NonClientFrameView* NativeWidgetAura::CreateNonClientFrameView() { | 222 NonClientFrameView* NativeWidgetAura::CreateNonClientFrameView() { |
223 return NULL; | 223 return NULL; |
224 } | 224 } |
225 | 225 |
226 void NativeWidgetAura::UpdateFrameAfterFrameChange() { | 226 void NativeWidgetAura::UpdateFrameAfterFrameChange() { |
227 // We don't support changing the frame type. | |
228 NOTREACHED(); | |
229 } | 227 } |
230 | 228 |
231 bool NativeWidgetAura::ShouldUseNativeFrame() const { | 229 bool NativeWidgetAura::ShouldUseNativeFrame() const { |
232 // There is only one frame type for aura. | 230 // There is only one frame type for aura. |
233 return false; | 231 return false; |
234 } | 232 } |
235 | 233 |
236 void NativeWidgetAura::FrameTypeChanged() { | 234 void NativeWidgetAura::FrameTypeChanged() { |
237 // This is called when the Theme has changed; forward the event to the root | 235 // This is called when the Theme has changed; forward the event to the root |
238 // widget. | 236 // widget. |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 } | 918 } |
921 } | 919 } |
922 | 920 |
923 // static | 921 // static |
924 bool NativeWidgetPrivate::IsMouseButtonDown() { | 922 bool NativeWidgetPrivate::IsMouseButtonDown() { |
925 return aura::RootWindow::GetInstance()->IsMouseButtonDown(); | 923 return aura::RootWindow::GetInstance()->IsMouseButtonDown(); |
926 } | 924 } |
927 | 925 |
928 } // namespace internal | 926 } // namespace internal |
929 } // namespace views | 927 } // namespace views |
OLD | NEW |