| 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 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 100 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| 101 virtual bool GetAcceleratorForCommandId( | 101 virtual bool GetAcceleratorForCommandId( |
| 102 int command_id, | 102 int command_id, |
| 103 ui::Accelerator* accelerator) OVERRIDE; | 103 ui::Accelerator* accelerator) OVERRIDE; |
| 104 virtual void ExecuteCommand(int command_id) OVERRIDE; | 104 virtual void ExecuteCommand(int command_id) OVERRIDE; |
| 105 | 105 |
| 106 // class name of internal | 106 // class name of internal |
| 107 static const char kViewClassName[]; | 107 static const char kViewClassName[]; |
| 108 | 108 |
| 109 // Returns true when | 109 // Returns true when |
| 110 // 1) built with GYP_DEFIENS="touchui=1" | 110 // 1) built with GYP_DEFINES="touchui=1" |
| 111 // 2) enabled by SetEnableTextfieldViews(true) | 111 // 2) enabled by SetEnableTextfieldViews(true) |
| 112 // 3) enabled by the command line flag "--enable-textfield-view". | 112 // 3) enabled by the command line flag "--enable-textfield-view". |
| 113 static bool IsTextfieldViewsEnabled(); | 113 static bool IsTextfieldViewsEnabled(); |
| 114 // Enable/Disable TextfieldViews implementation for Textfield. | 114 // Enable/Disable TextfieldViews implementation for Textfield. |
| 115 static void SetEnableTextfieldViews(bool enabled); | 115 static void SetEnableTextfieldViews(bool enabled); |
| 116 | 116 |
| 117 enum ClickState { | 117 enum ClickState { |
| 118 TRACKING_DOUBLE_CLICK, | 118 TRACKING_DOUBLE_CLICK, |
| 119 TRACKING_TRIPLE_CLICK, | 119 TRACKING_TRIPLE_CLICK, |
| 120 NONE, | 120 NONE, |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // Context menu and its content list for the textfield. | 273 // Context menu and its content list for the textfield. |
| 274 scoped_ptr<ui::SimpleMenuModel> context_menu_contents_; | 274 scoped_ptr<ui::SimpleMenuModel> context_menu_contents_; |
| 275 scoped_ptr<Menu2> context_menu_menu_; | 275 scoped_ptr<Menu2> context_menu_menu_; |
| 276 | 276 |
| 277 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 277 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
| 278 }; | 278 }; |
| 279 | 279 |
| 280 } // namespace views | 280 } // namespace views |
| 281 | 281 |
| 282 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 282 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| OLD | NEW |