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

Side by Side Diff: chrome/views/view.h

Issue 20112: Cleanup forward declared classes that are not needed. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/views/table_view.h ('k') | chrome/views/window.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_VIEW_H_ 5 #ifndef CHROME_VIEWS_VIEW_H_
6 #define CHROME_VIEWS_VIEW_H_ 6 #define CHROME_VIEWS_VIEW_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include <atlbase.h>» 11 #include <atlbase.h>
12 #include <atlapp.h>» 12 #include <atlapp.h>
13 #include <atlmisc.h>» 13 #include <atlmisc.h>
14 #endif // defined(OS_WIN) 14 #endif // defined(OS_WIN)
15 15
16 #include <algorithm>
16 #include <map> 17 #include <map>
18 #include <string>
17 #include <vector> 19 #include <vector>
18 20
19 #include "base/gfx/rect.h" 21 #include "base/gfx/rect.h"
20 #include "base/scoped_ptr.h" 22 #include "base/scoped_ptr.h"
21 #include "chrome/views/accelerator.h" 23 #include "chrome/views/accelerator.h"
22 #include "chrome/views/background.h" 24 #include "chrome/views/background.h"
23 #include "chrome/views/border.h" 25 #include "chrome/views/border.h"
24 26
25 namespace gfx { 27 namespace gfx {
26 class Insets; 28 class Insets;
27 class Path; 29 class Path;
28 } 30 }
29 31
30 class AccessibleWrapper; 32 class AccessibleWrapper;
31 class ChromeCanvas; 33 class ChromeCanvas;
32 class OSExchangeData; 34 class OSExchangeData;
33 class SkBitmap;
34 35
35 namespace views { 36 namespace views {
36 37
37 class Background; 38 class Background;
38 class Border; 39 class Border;
39 class FocusManager; 40 class FocusManager;
40 class FocusTraversable; 41 class FocusTraversable;
41 class LayoutManager; 42 class LayoutManager;
42 class RestoreFocusTask; 43 class RestoreFocusTask;
43 class RootView; 44 class RootView;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // values). A drag is only started if this returns a non-zero value. 87 // values). A drag is only started if this returns a non-zero value.
87 virtual int GetDragOperations(View* sender, int x, int y) = 0; 88 virtual int GetDragOperations(View* sender, int x, int y) = 0;
88 }; 89 };
89 90
90 91
91 ///////////////////////////////////////////////////////////////////////////// 92 /////////////////////////////////////////////////////////////////////////////
92 // 93 //
93 // View class 94 // View class
94 // 95 //
95 // A View is a rectangle within the views View hierarchy. It is the base 96 // A View is a rectangle within the views View hierarchy. It is the base
96 /// class for all Views. 97 // class for all Views.
97 // 98 //
98 // A View is a container of other Views (there is no such thing as a Leaf 99 // A View is a container of other Views (there is no such thing as a Leaf
99 // View - makes code simpler, reduces type conversion headaches, design 100 // View - makes code simpler, reduces type conversion headaches, design
100 // mistakes etc) 101 // mistakes etc)
101 // 102 //
102 // The View contains basic properties for sizing (bounds), layout (flex, 103 // The View contains basic properties for sizing (bounds), layout (flex,
103 // orientation, etc), painting of children and event dispatch. 104 // orientation, etc), painting of children and event dispatch.
104 // 105 //
105 // The View also uses a simple Box Layout Manager similar to XUL's 106 // The View also uses a simple Box Layout Manager similar to XUL's
106 // SprocketLayout system. Alternative Layout Managers implementing the 107 // SprocketLayout system. Alternative Layout Managers implementing the
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 // is going to be flipped horizontally (using the appropriate transform) on 1325 // is going to be flipped horizontally (using the appropriate transform) on
1325 // right-to-left locales for this View. 1326 // right-to-left locales for this View.
1326 bool flip_canvas_on_paint_for_rtl_ui_; 1327 bool flip_canvas_on_paint_for_rtl_ui_;
1327 1328
1328 DISALLOW_COPY_AND_ASSIGN(View); 1329 DISALLOW_COPY_AND_ASSIGN(View);
1329 }; 1330 };
1330 1331
1331 } // namespace views 1332 } // namespace views
1332 1333
1333 #endif // CHROME_VIEWS_VIEW_H_ 1334 #endif // CHROME_VIEWS_VIEW_H_
1334
OLDNEW
« no previous file with comments | « chrome/views/table_view.h ('k') | chrome/views/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698