OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "ui/base/events.h" | 10 #include "ui/base/events.h" |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 bool skip_input_method_cancel_composition_; | 265 bool skip_input_method_cancel_composition_; |
266 | 266 |
267 // Is the user potentially dragging and dropping from this view? | 267 // Is the user potentially dragging and dropping from this view? |
268 bool initiating_drag_; | 268 bool initiating_drag_; |
269 | 269 |
270 // A runnable method factory for callback to update the cursor. | 270 // A runnable method factory for callback to update the cursor. |
271 base::WeakPtrFactory<NativeTextfieldViews> cursor_timer_; | 271 base::WeakPtrFactory<NativeTextfieldViews> cursor_timer_; |
272 | 272 |
273 // State variables used to track double and triple clicks. | 273 // State variables used to track double and triple clicks. |
274 size_t aggregated_clicks_; | 274 size_t aggregated_clicks_; |
275 base::Time last_click_time_; | 275 base::TimeDelta last_click_time_; |
276 gfx::Point last_click_location_; | 276 gfx::Point last_click_location_; |
277 | 277 |
278 // Context menu and its content list for the textfield. | 278 // Context menu and its content list for the textfield. |
279 scoped_ptr<ui::SimpleMenuModel> context_menu_contents_; | 279 scoped_ptr<ui::SimpleMenuModel> context_menu_contents_; |
280 scoped_ptr<views::MenuModelAdapter> context_menu_delegate_; | 280 scoped_ptr<views::MenuModelAdapter> context_menu_delegate_; |
281 scoped_ptr<views::MenuRunner> context_menu_runner_; | 281 scoped_ptr<views::MenuRunner> context_menu_runner_; |
282 | 282 |
283 scoped_ptr<TouchSelectionController> touch_selection_controller_; | 283 scoped_ptr<TouchSelectionController> touch_selection_controller_; |
284 | 284 |
285 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 285 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
286 }; | 286 }; |
287 | 287 |
288 } // namespace views | 288 } // namespace views |
289 | 289 |
290 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 290 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
OLD | NEW |