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

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

Issue 8536004: Cleanup: Remove unneeded forward declarations in views. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/table/table_view.h ('k') | views/desktop/desktop_window_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_TEXTFIELD_VIEWS_MODEL_H_ 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_VIEWS_MODEL_H_
6 #define VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_VIEWS_MODEL_H_ 6 #define VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_VIEWS_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "third_party/skia/include/core/SkColor.h" 15 #include "third_party/skia/include/core/SkColor.h"
16 #include "ui/base/ime/composition_text.h" 16 #include "ui/base/ime/composition_text.h"
17 #include "ui/gfx/rect.h" 17 #include "ui/gfx/rect.h"
18 #include "ui/gfx/render_text.h" 18 #include "ui/gfx/render_text.h"
19 #include "views/views_export.h" 19 #include "views/views_export.h"
20 20
21 namespace gfx { 21 namespace gfx {
22 class Canvas;
23 class Font;
24 class RenderText; 22 class RenderText;
25 struct StyleRange;
26 } // namespace gfx 23 } // namespace gfx
27 24
28 namespace ui { 25 namespace ui {
29 class Range; 26 class Range;
30 } // namespace ui 27 } // namespace ui
31 28
32 namespace views { 29 namespace views {
33 30
34 namespace internal { 31 namespace internal {
35 // Internal Edit class that keeps track of edits for undo/redo. 32 // Internal Edit class that keeps track of edits for undo/redo.
(...skipping 11 matching lines...) Expand all
47 // as DO_NOT_MERGE. 44 // as DO_NOT_MERGE.
48 MERGE_WITH_PREVIOUS, 45 MERGE_WITH_PREVIOUS,
49 }; 46 };
50 47
51 } // namespace internal 48 } // namespace internal
52 49
53 // A model that represents a text content for TextfieldViews. 50 // A model that represents a text content for TextfieldViews.
54 // It supports editing, selection and cursor manipulation. 51 // It supports editing, selection and cursor manipulation.
55 class VIEWS_EXPORT TextfieldViewsModel { 52 class VIEWS_EXPORT TextfieldViewsModel {
56 public: 53 public:
57
58 // Delegate interface implemented by the textfield view class to provided 54 // Delegate interface implemented by the textfield view class to provided
59 // additional functionalities required by the model. 55 // additional functionalities required by the model.
60 class VIEWS_EXPORT Delegate { 56 class VIEWS_EXPORT Delegate {
61 public: 57 public:
62 // Called when the current composition text is confirmed or cleared. 58 // Called when the current composition text is confirmed or cleared.
63 virtual void OnCompositionTextConfirmedOrCleared() = 0; 59 virtual void OnCompositionTextConfirmedOrCleared() = 0;
64 60
65 protected: 61 protected:
66 virtual ~Delegate(); 62 virtual ~Delegate();
67 }; 63 };
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // 2) new edit is added. (redo history is cleared) 320 // 2) new edit is added. (redo history is cleared)
325 // 3) redone all undone edits. 321 // 3) redone all undone edits.
326 EditHistory::iterator current_edit_; 322 EditHistory::iterator current_edit_;
327 323
328 DISALLOW_COPY_AND_ASSIGN(TextfieldViewsModel); 324 DISALLOW_COPY_AND_ASSIGN(TextfieldViewsModel);
329 }; 325 };
330 326
331 } // namespace views 327 } // namespace views
332 328
333 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_VIEWS_MODEL_H_ 329 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_VIEWS_MODEL_H_
OLDNEW
« no previous file with comments | « views/controls/table/table_view.h ('k') | views/desktop/desktop_window_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698