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

Side by Side Diff: views/controls/textfield/native_textfield_views.h

Issue 6880201: Scrap WNDCLASSEX.hCursor, update GetCursorForPoint, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use brace style struct init for WNDCLASSEX |class_ex|, fix comment. Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/resize_area.cc ('k') | views/view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « views/controls/resize_area.cc ('k') | views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698