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

Side by Side Diff: views/widget/native_widget_views.cc

Issue 7129022: Move last of event handlers down to NativeWidgetWin/Gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | « views/widget/native_widget_views.h ('k') | views/widget/native_widget_win.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) 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
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
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
OLDNEW
« no previous file with comments | « views/widget/native_widget_views.h ('k') | views/widget/native_widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698