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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 } | 235 } |
236 | 236 |
237 aura::client::SetActivationDelegate(window_, this); | 237 aura::client::SetActivationDelegate(window_, this); |
238 } | 238 } |
239 | 239 |
240 NonClientFrameView* NativeWidgetAura::CreateNonClientFrameView() { | 240 NonClientFrameView* NativeWidgetAura::CreateNonClientFrameView() { |
241 return NULL; | 241 return NULL; |
242 } | 242 } |
243 | 243 |
244 void NativeWidgetAura::UpdateFrameAfterFrameChange() { | 244 void NativeWidgetAura::UpdateFrameAfterFrameChange() { |
245 // We don't support changing the frame type. | |
246 NOTREACHED(); | |
247 } | 245 } |
248 | 246 |
249 bool NativeWidgetAura::ShouldUseNativeFrame() const { | 247 bool NativeWidgetAura::ShouldUseNativeFrame() const { |
250 // There is only one frame type for aura. | 248 // There is only one frame type for aura. |
251 return false; | 249 return false; |
252 } | 250 } |
253 | 251 |
254 void NativeWidgetAura::FrameTypeChanged() { | 252 void NativeWidgetAura::FrameTypeChanged() { |
255 // This is called when the Theme has changed; forward the event to the root | 253 // This is called when the Theme has changed; forward the event to the root |
256 // widget. | 254 // widget. |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 } | 946 } |
949 } | 947 } |
950 | 948 |
951 // static | 949 // static |
952 bool NativeWidgetPrivate::IsMouseButtonDown() { | 950 bool NativeWidgetPrivate::IsMouseButtonDown() { |
953 return aura::RootWindow::GetInstance()->IsMouseButtonDown(); | 951 return aura::RootWindow::GetInstance()->IsMouseButtonDown(); |
954 } | 952 } |
955 | 953 |
956 } // namespace internal | 954 } // namespace internal |
957 } // namespace views | 955 } // namespace views |
OLD | NEW |