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

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

Issue 1543173002: Switch to standard integer types in ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/menu_example.h" 5 #include "ui/views/examples/menu_example.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/macros.h"
9 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
10 #include "ui/base/models/simple_menu_model.h" 11 #include "ui/base/models/simple_menu_model.h"
11 #include "ui/views/controls/button/menu_button.h" 12 #include "ui/views/controls/button/menu_button.h"
12 #include "ui/views/controls/button/menu_button_listener.h" 13 #include "ui/views/controls/button/menu_button_listener.h"
13 #include "ui/views/controls/menu/menu_runner.h" 14 #include "ui/views/controls/menu/menu_runner.h"
14 #include "ui/views/layout/fill_layout.h" 15 #include "ui/views/layout/fill_layout.h"
15 #include "ui/views/view.h" 16 #include "ui/views/view.h"
16 #include "ui/views/widget/widget.h" 17 #include "ui/views/widget/widget.h"
17 18
18 using base::ASCIIToUTF16; 19 using base::ASCIIToUTF16;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 void MenuExample::CreateExampleView(View* container) { 215 void MenuExample::CreateExampleView(View* container) {
215 // We add a button to open a menu. 216 // We add a button to open a menu.
216 ExampleMenuButton* menu_button = new ExampleMenuButton( 217 ExampleMenuButton* menu_button = new ExampleMenuButton(
217 ASCIIToUTF16("Open a menu")); 218 ASCIIToUTF16("Open a menu"));
218 container->SetLayoutManager(new FillLayout); 219 container->SetLayoutManager(new FillLayout);
219 container->AddChildView(menu_button); 220 container->AddChildView(menu_button);
220 } 221 }
221 222
222 } // namespace examples 223 } // namespace examples
223 } // namespace views 224 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698