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: chrome/browser/chromeos/external_protocol_dialog.cc

Issue 6204002: Carnitas: Remove chrome/browser/views, update references. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yay, more syncing Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 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/chromeos/external_protocol_dialog.h" 5 #include "chrome/browser/chromeos/external_protocol_dialog.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/message_box_flags.h" 8 #include "app/message_box_flags.h"
9 #include "app/text_elider.h" 9 #include "app/text_elider.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/external_protocol_handler.h" 13 #include "chrome/browser/external_protocol_handler.h"
14 #include "chrome/browser/tab_contents/tab_contents.h" 14 #include "chrome/browser/tab_contents/tab_contents.h"
15 #include "chrome/browser/tab_contents/tab_contents_view.h" 15 #include "chrome/browser/tab_contents/tab_contents_view.h"
16 #include "chrome/browser/tab_contents/tab_util.h" 16 #include "chrome/browser/tab_contents/tab_util.h"
17 #include "chrome/browser/views/window.h" 17 #include "chrome/browser/ui/views/window.h"
18 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
19 #include "grit/chromium_strings.h" 19 #include "grit/chromium_strings.h"
20 #include "grit/generated_resources.h" 20 #include "grit/generated_resources.h"
21 #include "views/controls/message_box_view.h" 21 #include "views/controls/message_box_view.h"
22 #include "views/window/window.h" 22 #include "views/window/window.h"
23 23
24 namespace { 24 namespace {
25 25
26 const int kMessageWidth = 400; 26 const int kMessageWidth = 400;
27 27
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 gfx::NativeWindow parent_window; 106 gfx::NativeWindow parent_window;
107 if (tab_contents) { 107 if (tab_contents) {
108 parent_window = tab_contents->view()->GetTopLevelNativeWindow(); 108 parent_window = tab_contents->view()->GetTopLevelNativeWindow();
109 } else { 109 } else {
110 // Dialog is top level if we don't have a tab_contents associated with us. 110 // Dialog is top level if we don't have a tab_contents associated with us.
111 parent_window = NULL; 111 parent_window = NULL;
112 } 112 }
113 browser::CreateViewsWindow(parent_window, gfx::Rect(), this)->Show(); 113 browser::CreateViewsWindow(parent_window, gfx::Rect(), this)->Show();
114 } 114 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_main_win.cc ('k') | chrome/browser/chromeos/frame/browser_frame_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698