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

Side by Side Diff: ui/views/examples/double_split_view_example.cc

Issue 8566052: views: Delete bubble, events, focus, layout directories and its stubbed files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win 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 | « ui/views/examples/combobox_example.cc ('k') | ui/views/examples/examples_main.cc » ('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 #include "ui/views/examples/double_split_view_example.h" 5 #include "ui/views/examples/double_split_view_example.h"
6 6
7 #include "ui/views/layout/grid_layout.h"
7 #include "views/controls/single_split_view.h" 8 #include "views/controls/single_split_view.h"
8 #include "views/layout/grid_layout.h"
9 9
10 namespace { 10 namespace {
11 11
12 // DoubleSplitViews's content, which draws gradient color on background. 12 // DoubleSplitViews's content, which draws gradient color on background.
13 class SplittedView : public views::View { 13 class SplittedView : public views::View {
14 public: 14 public:
15 SplittedView(); 15 SplittedView();
16 virtual ~SplittedView(); 16 virtual ~SplittedView();
17 17
18 void SetColor(SkColor from, SkColor to); 18 void SetColor(SkColor from, SkColor to);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Add scroll view. 72 // Add scroll view.
73 views::ColumnSet* column_set = layout->AddColumnSet(0); 73 views::ColumnSet* column_set = layout->AddColumnSet(0);
74 column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 1, 74 column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 1,
75 views::GridLayout::USE_PREF, 0, 0); 75 views::GridLayout::USE_PREF, 0, 0);
76 layout->StartRow(1, 0); 76 layout->StartRow(1, 0);
77 layout->AddView(outer_single_split_view_); 77 layout->AddView(outer_single_split_view_);
78 } 78 }
79 79
80 } // namespace examples 80 } // namespace examples
OLDNEW
« no previous file with comments | « ui/views/examples/combobox_example.cc ('k') | ui/views/examples/examples_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698