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

Side by Side Diff: chrome/browser/ui/input_window_dialog_win.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real 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
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 "chrome/browser/ui/input_window_dialog.h" 5 #include "chrome/browser/ui/input_window_dialog.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/ui/webui/chrome_web_ui.h" 12 #include "chrome/browser/ui/webui/chrome_web_ui.h"
13 #include "chrome/browser/ui/webui/input_window_dialog_webui.h" 13 #include "chrome/browser/ui/webui/input_window_dialog_webui.h"
14 #include "grit/generated_resources.h" 14 #include "grit/generated_resources.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 #include "ui/views/layout/grid_layout.h" 16 #include "ui/views/layout/grid_layout.h"
17 #include "ui/views/layout/layout_constants.h" 17 #include "ui/views/layout/layout_constants.h"
18 #include "ui/views/widget/widget.h"
18 #include "ui/views/window/dialog_delegate.h" 19 #include "ui/views/window/dialog_delegate.h"
19 #include "views/controls/label.h" 20 #include "views/controls/label.h"
20 #include "views/controls/textfield/textfield.h" 21 #include "views/controls/textfield/textfield.h"
21 #include "views/controls/textfield/textfield_controller.h" 22 #include "views/controls/textfield/textfield_controller.h"
22 #include "views/widget/widget.h"
23 23
24 namespace { 24 namespace {
25 25
26 // Width of the text field, in pixels. 26 // Width of the text field, in pixels.
27 const int kTextfieldWidth = 200; 27 const int kTextfieldWidth = 200;
28 28
29 } // namespace 29 } // namespace
30 30
31 // The Windows implementation of the cross platform input dialog interface. 31 // The Windows implementation of the cross platform input dialog interface.
32 class InputWindowDialogWin : public InputWindowDialog { 32 class InputWindowDialogWin : public InputWindowDialog {
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 } else { 273 } else {
274 DCHECK_EQ(1U, label_contents_pairs.size()); 274 DCHECK_EQ(1U, label_contents_pairs.size());
275 return new InputWindowDialogWin(parent, 275 return new InputWindowDialogWin(parent,
276 window_title, 276 window_title,
277 label_contents_pairs[0].first, 277 label_contents_pairs[0].first,
278 label_contents_pairs[0].second, 278 label_contents_pairs[0].second,
279 delegate, 279 delegate,
280 type); 280 type);
281 } 281 }
282 } 282 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar_host_browsertest.cc ('k') | chrome/browser/ui/omnibox/omnibox_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698