OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <gdk/gdkkeysyms.h> | 5 #include <gdk/gdkkeysyms.h> |
6 #include <gtk/gtk.h> | 6 #include <gtk/gtk.h> |
7 | 7 |
8 #include "views/controls/textfield/native_textfield_gtk.h" | 8 #include "views/controls/textfield/native_textfield_gtk.h" |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 bool NativeTextfieldGtk::HandleKeyReleased(const views::KeyEvent& e) { | 281 bool NativeTextfieldGtk::HandleKeyReleased(const views::KeyEvent& e) { |
282 return false; | 282 return false; |
283 } | 283 } |
284 | 284 |
285 void NativeTextfieldGtk::HandleFocus() { | 285 void NativeTextfieldGtk::HandleFocus() { |
286 } | 286 } |
287 | 287 |
288 void NativeTextfieldGtk::HandleBlur() { | 288 void NativeTextfieldGtk::HandleBlur() { |
289 } | 289 } |
290 | 290 |
291 ui::TextInputClient* NativeTextfieldGtk::GetTextInputClient() { | 291 TextInputClient* NativeTextfieldGtk::GetTextInputClient() { |
292 return NULL; | 292 return NULL; |
293 } | 293 } |
294 | 294 |
295 void NativeTextfieldGtk::ApplyStyleRange(const gfx::StyleRange& style) { | 295 void NativeTextfieldGtk::ApplyStyleRange(const gfx::StyleRange& style) { |
296 NOTREACHED(); | 296 NOTREACHED(); |
297 } | 297 } |
298 | 298 |
299 void NativeTextfieldGtk::ApplyDefaultStyle() { | 299 void NativeTextfieldGtk::ApplyDefaultStyle() { |
300 NOTREACHED(); | 300 NOTREACHED(); |
301 } | 301 } |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 | 429 |
430 // static | 430 // static |
431 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( | 431 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( |
432 Textfield* field) { | 432 Textfield* field) { |
433 if (Widget::IsPureViews()) | 433 if (Widget::IsPureViews()) |
434 return new NativeTextfieldViews(field); | 434 return new NativeTextfieldViews(field); |
435 return new NativeTextfieldGtk(field); | 435 return new NativeTextfieldGtk(field); |
436 } | 436 } |
437 | 437 |
438 } // namespace views | 438 } // namespace views |
OLD | NEW |