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

Side by Side Diff: chrome/browser/ui/views/importer_lock_view.cc

Issue 6257017: views: Move standard_layout.h into the layout directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 9 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/browser/ui/views/hung_renderer_view.cc ('k') | chrome/browser/ui/views/importer_view.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 "chrome/browser/ui/views/importer_lock_view.h" 5 #include "chrome/browser/ui/views/importer_lock_view.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/importer/importer.h" 9 #include "chrome/browser/importer/importer.h"
10 #include "grit/chromium_strings.h" 10 #include "grit/chromium_strings.h"
11 #include "grit/generated_resources.h" 11 #include "grit/generated_resources.h"
12 #include "grit/locale_settings.h" 12 #include "grit/locale_settings.h"
13 #include "ui/base/l10n/l10n_util.h" 13 #include "ui/base/l10n/l10n_util.h"
14 #include "views/controls/label.h" 14 #include "views/controls/label.h"
15 #include "views/standard_layout.h" 15 #include "views/layout/layout_constants.h"
16 #include "views/window/window.h" 16 #include "views/window/window.h"
17 17
18 // Default size of the dialog window. 18 // Default size of the dialog window.
19 static const int kDefaultWindowWidth = 320; 19 static const int kDefaultWindowWidth = 320;
20 static const int kDefaultWindowHeight = 100; 20 static const int kDefaultWindowHeight = 100;
21 21
22 ImporterLockView::ImporterLockView(ImporterHost* host) 22 ImporterLockView::ImporterLockView(ImporterHost* host)
23 : description_label_(NULL), 23 : description_label_(NULL),
24 importer_host_(host) { 24 importer_host_(host) {
25 description_label_ = new views::Label( 25 description_label_ = new views::Label(
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 bool ImporterLockView::Cancel() { 71 bool ImporterLockView::Cancel() {
72 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( 72 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod(
73 importer_host_, &ImporterHost::OnLockViewEnd, false)); 73 importer_host_, &ImporterHost::OnLockViewEnd, false));
74 return true; 74 return true;
75 } 75 }
76 76
77 views::View* ImporterLockView::GetContentsView() { 77 views::View* ImporterLockView::GetContentsView() {
78 return this; 78 return this;
79 } 79 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/hung_renderer_view.cc ('k') | chrome/browser/ui/views/importer_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698