OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/widget/native_widget_views.h" | 5 #include "views/widget/native_widget_views.h" |
6 | 6 |
7 #include "views/view.h" | 7 #include "views/view.h" |
8 #include "views/widget/native_widget_view.h" | 8 #include "views/widget/native_widget_view.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 void NativeWidgetViews::SetAccessibleName(const std::wstring& name) { | 161 void NativeWidgetViews::SetAccessibleName(const std::wstring& name) { |
162 } | 162 } |
163 | 163 |
164 void NativeWidgetViews::SetAccessibleRole(ui::AccessibilityTypes::Role role) { | 164 void NativeWidgetViews::SetAccessibleRole(ui::AccessibilityTypes::Role role) { |
165 } | 165 } |
166 | 166 |
167 void NativeWidgetViews::SetAccessibleState( | 167 void NativeWidgetViews::SetAccessibleState( |
168 ui::AccessibilityTypes::State state) { | 168 ui::AccessibilityTypes::State state) { |
169 } | 169 } |
170 | 170 |
| 171 void NativeWidgetViews::BecomeModal() { |
| 172 NOTIMPLEMENTED(); |
| 173 } |
| 174 |
171 gfx::AcceleratedWidget NativeWidgetViews::GetAcceleratedWidget() { | 175 gfx::AcceleratedWidget NativeWidgetViews::GetAcceleratedWidget() { |
172 // TODO(sky): | 176 // TODO(sky): |
173 return gfx::kNullAcceleratedWidget; | 177 return gfx::kNullAcceleratedWidget; |
174 } | 178 } |
175 | 179 |
176 gfx::Rect NativeWidgetViews::GetWindowScreenBounds() const { | 180 gfx::Rect NativeWidgetViews::GetWindowScreenBounds() const { |
177 gfx::Point origin = view_->bounds().origin(); | 181 gfx::Point origin = view_->bounds().origin(); |
178 View::ConvertPointToScreen(view_->parent(), &origin); | 182 View::ConvertPointToScreen(view_->parent(), &origin); |
179 return gfx::Rect(origin.x(), origin.y(), view_->width(), view_->height()); | 183 return gfx::Rect(origin.x(), origin.y(), view_->width(), view_->height()); |
180 } | 184 } |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 NativeWidget* NativeWidgetViews::GetParentNativeWidget() { | 330 NativeWidget* NativeWidgetViews::GetParentNativeWidget() { |
327 return view_->GetWidget()->native_widget(); | 331 return view_->GetWidget()->native_widget(); |
328 } | 332 } |
329 | 333 |
330 const NativeWidget* NativeWidgetViews::GetParentNativeWidget() const { | 334 const NativeWidget* NativeWidgetViews::GetParentNativeWidget() const { |
331 return view_->GetWidget()->native_widget(); | 335 return view_->GetWidget()->native_widget(); |
332 } | 336 } |
333 | 337 |
334 } // namespace views | 338 } // namespace views |
335 | 339 |
OLD | NEW |