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

Side by Side Diff: chrome/browser/ui/views/frame/browser_window_factory.cc

Issue 1336823003: Move chrome::HostDesktopType to ui::HostDesktopType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_session_service_delegate_impl
Patch Set: Fix build on Mac and CrOS Created 5 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/frame/browser_frame.h" 5 #include "chrome/browser/ui/views/frame/browser_frame.h"
6 #include "chrome/browser/ui/views/frame/browser_view.h" 6 #include "chrome/browser/ui/views/frame/browser_view.h"
7 #include "chrome/browser/ui/views/frame/native_browser_frame_factory.h" 7 #include "chrome/browser/ui/views/frame/native_browser_frame_factory.h"
8 #include "chrome/grit/chromium_strings.h" 8 #include "chrome/grit/chromium_strings.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
11 11
12 // static 12 // static
13 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 13 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
14 // Create the view and the frame. The frame will attach itself via the view 14 // Create the view and the frame. The frame will attach itself via the view
15 // so we don't need to do anything with the pointer. 15 // so we don't need to do anything with the pointer.
16 BrowserView* view = new BrowserView(); 16 BrowserView* view = new BrowserView();
17 view->Init(browser); 17 view->Init(browser);
18 (new BrowserFrame(view))->InitBrowserFrame(); 18 (new BrowserFrame(view))->InitBrowserFrame();
19 view->GetWidget()->non_client_view()->SetAccessibleName( 19 view->GetWidget()->non_client_view()->SetAccessibleName(
20 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); 20 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
21 return view; 21 return view;
22 } 22 }
23 23
24 // static 24 // static
25 chrome::HostDesktopType BrowserWindow::AdjustHostDesktopType( 25 ui::HostDesktopType BrowserWindow::AdjustHostDesktopType(
26 chrome::HostDesktopType desktop_type) { 26 ui::HostDesktopType desktop_type) {
27 return NativeBrowserFrameFactory::AdjustHostDesktopType(desktop_type); 27 return NativeBrowserFrameFactory::AdjustHostDesktopType(desktop_type);
28 } 28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698