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

Unified Diff: views/window/native_window_gtk.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/window/native_window_gtk.h ('k') | views/window/native_window_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/native_window_gtk.cc
===================================================================
--- views/window/native_window_gtk.cc (revision 88218)
+++ views/window/native_window_gtk.cc (working copy)
@@ -187,11 +187,6 @@
return NativeWidgetGtk::OnLeaveNotify(widget, event);
}
-void NativeWindowGtk::IsActiveChanged() {
- NativeWidgetGtk::IsActiveChanged();
- delegate_->OnNativeWindowActivationChanged(IsActive());
-}
-
void NativeWindowGtk::InitNativeWidget(const Widget::InitParams& params) {
NativeWidgetGtk::InitNativeWidget(params);
@@ -210,26 +205,10 @@
return this;
}
-gfx::Rect NativeWindowGtk::GetRestoredBounds() const {
- // We currently don't support tiling, so this doesn't matter.
- return GetWindowScreenBounds();
-}
-
-void NativeWindowGtk::ShowNativeWindow(ShowState state) {
- // No concept of maximization (yet) on ChromeOS.
- if (state == NativeWindow::SHOW_INACTIVE)
- gtk_window_set_focus_on_map(GetNativeWindow(), false);
- gtk_widget_show(GetNativeView());
-}
-
void NativeWindowGtk::BecomeModal() {
gtk_window_set_modal(GetNativeWindow(), true);
}
-void NativeWindowGtk::EnableClose(bool enable) {
- gtk_window_set_deletable(GetNativeWindow(), enable);
-}
-
Window* NativeWindowGtk::GetWindow() {
return delegate_->AsWindow();
}
@@ -241,13 +220,6 @@
////////////////////////////////////////////////////////////////////////////////
// NativeWindowGtk, NativeWidgetGtk overrides:
-void NativeWindowGtk::Restore() {
- if (IsFullscreen())
- SetFullscreen(false);
- else
- NativeWidgetGtk::Restore();
-}
-
gboolean NativeWindowGtk::OnWindowStateEvent(GtkWidget* widget,
GdkEventWindowState* event) {
if (!(event->new_window_state & GDK_WINDOW_STATE_WITHDRAWN))
@@ -276,11 +248,6 @@
maximized);
}
-void NativeWindowGtk::OnDestroy(GtkWidget* widget) {
- delegate_->OnNativeWindowDestroying();
- NativeWidgetGtk::OnDestroy(widget);
-}
-
////////////////////////////////////////////////////////////////////////////////
// NativeWindow, public:
« no previous file with comments | « views/window/native_window_gtk.h ('k') | views/window/native_window_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698