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

Unified Diff: views/widget/native_widget_gtk.cc

Issue 8598024: Now that we are doing a hard-cut-over to Aura, remove a bunch of *Views based classes that are ob... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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_delegate.h ('k') | views/widget/native_widget_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_gtk.cc
===================================================================
--- views/widget/native_widget_gtk.cc (revision 110826)
+++ views/widget/native_widget_gtk.cc (working copy)
@@ -40,7 +40,6 @@
#include "views/widget/drop_target_gtk.h"
#include "views/widget/gtk_views_fixed.h"
#include "views/widget/gtk_views_window.h"
-#include "views/widget/native_widget_views.h"
#include "views/widget/root_view.h"
#include "views/widget/widget_delegate.h"
@@ -992,8 +991,7 @@
// Create input method when pure views is enabled but not on views desktop.
// TODO(suzhe): Always enable input method when we start to use
// RenderWidgetHostViewViews in normal ChromeOS.
- if (views::Widget::IsPureViews() &&
- !ViewsDelegate::views_delegate->GetDefaultParentView()) {
+ if (views::Widget::IsPureViews()) {
#if defined(HAVE_IBUS)
InputMethod* input_method =
InputMethodIBus::IsInputMethodIBusEnabled() ?
@@ -1005,7 +1003,7 @@
input_method->Init(GetWidget());
return input_method;
}
- // GTK's textfield or InputMethod in NativeWidgetViews will handle IME.
+ // GTK's textfield will handle IME.
return NULL;
}
@@ -1356,14 +1354,7 @@
}
gfx::Rect NativeWidgetGtk::GetWorkAreaBoundsInScreen() const {
- ViewsDelegate *delegate = ViewsDelegate::views_delegate;
- if (delegate && delegate->GetDefaultParentView()) {
- // For views-desktop, the work area is the entire space inside this
- // containter window.
- return gfx::Rect(gfx::Point(0, 0),
- delegate->GetDefaultParentView()->size());
- } else
- return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView());
+ return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView());
}
void NativeWidgetGtk::SetInactiveRenderingDisabled(bool value) {
@@ -2215,10 +2206,6 @@
// static
NativeWidgetPrivate* NativeWidgetPrivate::CreateNativeWidget(
NativeWidgetDelegate* delegate) {
- if (Widget::IsPureViews() && ViewsDelegate::views_delegate &&
- ViewsDelegate::views_delegate->GetDefaultParentView()) {
- return new NativeWidgetViews(delegate);
- }
return new NativeWidgetGtk(delegate);
}
« no previous file with comments | « views/widget/native_widget_delegate.h ('k') | views/widget/native_widget_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698