| 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 {
|
|
|