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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/simple_grid_layout.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BROWSER_UI_COCOA_AUTOFILL_SIMPLE_GRID_LAYOUT_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_SIMPLE_GRID_LAYOUT_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_SIMPLE_GRID_LAYOUT_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_SIMPLE_GRID_LAYOUT_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include <memory>
11
11 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
12 13
13 class Column; 14 class Column;
14 class ColumnSet; 15 class ColumnSet;
15 class Row; 16 class Row;
16 class ViewState; 17 class ViewState;
17 18
18 // SimpleGridLayout is a layout manager that positions child views in a grid. 19 // SimpleGridLayout is a layout manager that positions child views in a grid.
19 // Each row has exactly one ColumnSet, ColumnSets can be shared between rows. 20 // Each row has exactly one ColumnSet, ColumnSets can be shared between rows.
20 // See ui/views/layout/grid_layout.h for more details - this is a very 21 // See ui/views/layout/grid_layout.h for more details - this is a very
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 132
132 private: 133 private:
133 float CalculateRemainingWidth(float width); 134 float CalculateRemainingWidth(float width);
134 void DistributeRemainingWidth(float width); 135 void DistributeRemainingWidth(float width);
135 136
136 ScopedVector<Column> columns_; 137 ScopedVector<Column> columns_;
137 int id_; 138 int id_;
138 }; 139 };
139 140
140 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_SIMPLE_GRID_LAYOUT_H_ 141 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_SIMPLE_GRID_LAYOUT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/save_card_bubble_view_unittest.mm ('k') | chrome/browser/ui/cocoa/base_bubble_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698