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

Unified Diff: views/widget/native_widget_views.cc

Issue 7054052: Move more from Window onto Widget. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/widget/native_widget_views.h ('k') | views/widget/native_widget_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_views.cc
===================================================================
--- views/widget/native_widget_views.cc (revision 88218)
+++ views/widget/native_widget_views.cc (working copy)
@@ -80,11 +80,11 @@
}
Window* NativeWidgetViews::GetContainingWindow() {
- return view_->GetWindow();
+ return view_->GetWidget()->AsWindow();
}
const Window* NativeWidgetViews::GetContainingWindow() const {
- return view_->GetWindow();
+ return view_->GetWidget()->AsWindow();
}
void NativeWidgetViews::ViewRemoved(View* view) {
@@ -183,6 +183,10 @@
return GetWindowScreenBounds();
}
+gfx::Rect NativeWidgetViews::GetRestoredBounds() const {
+ return GetWindowScreenBounds();
+}
+
void NativeWidgetViews::SetBounds(const gfx::Rect& bounds) {
// |bounds| are supplied in the coordinates of the parent.
view_->SetBoundsRect(bounds);
@@ -219,6 +223,9 @@
delete view_;
}
+void NativeWidgetViews::EnableClose(bool enable) {
+}
+
void NativeWidgetViews::Show() {
view_->SetVisible(true);
}
@@ -227,6 +234,9 @@
view_->SetVisible(false);
}
+void NativeWidgetViews::ShowNativeWidget(ShowState state) {
+}
+
bool NativeWidgetViews::IsVisible() const {
return view_->IsVisible();
}
« 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