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

Unified Diff: ui/views/widget/widget.cc

Issue 9968058: Cleanup: remove GTK stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 8c3799d0974f53da19e4c13d09c51ce55241b031..50ec745abd52456ce1eadc72f322688892d6498c 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -35,9 +35,6 @@ namespace {
// Set to true if a pure Views implementation is preferred
bool use_pure_views = false;
-// True to enable debug paint that indicates where to be painted.
-bool debug_paint = false;
-
} // namespace
namespace views {
@@ -300,16 +297,6 @@ gfx::Size Widget::GetLocalizedContentsSize(int col_resource_id,
}
// static
-void Widget::SetDebugPaintEnabled(bool enabled) {
- debug_paint = enabled;
-}
-
-// static
-bool Widget::IsDebugPaintEnabled() {
- return debug_paint;
-}
-
-// static
bool Widget::RequiresNonClientView(InitParams::Type type) {
return type == InitParams::TYPE_WINDOW ||
type == InitParams::TYPE_PANEL ||
@@ -1280,12 +1267,8 @@ bool Widget::GetSavedWindowPlacement(gfx::Rect* bounds,
void Widget::ReplaceInputMethod(InputMethod* input_method) {
input_method_.reset(input_method);
- // TODO(oshima): Gtk's textfield doesn't need views InputMethod.
- // Remove this check once gtk is removed.
- if (input_method) {
- input_method->set_delegate(native_widget_);
- input_method->Init(this);
- }
+ input_method->set_delegate(native_widget_);
+ input_method->Init(this);
}
namespace internal {
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698