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

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

Issue 7265009: Revert 90464 - Move app/win/* files to base/win/, ui/base/win and chrome/common/ directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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) 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/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <shellapi.h>
8 #include <windows.h> 9 #include <windows.h>
9 #include <shellapi.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
11 11
12 #include <algorithm> 12 #include <algorithm>
13 #include <string> 13 #include <string>
14 14
15 #include "base/base_paths.h" 15 #include "base/base_paths.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/metrics/histogram.h" 18 #include "base/metrics/histogram.h"
19 #include "base/path_service.h" 19 #include "base/path_service.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 #include "net/base/net_util.h" 131 #include "net/base/net_util.h"
132 #include "net/base/registry_controlled_domain.h" 132 #include "net/base/registry_controlled_domain.h"
133 #include "net/url_request/url_request_context.h" 133 #include "net/url_request/url_request_context.h"
134 #include "ui/base/animation/animation.h" 134 #include "ui/base/animation/animation.h"
135 #include "ui/base/l10n/l10n_util.h" 135 #include "ui/base/l10n/l10n_util.h"
136 #include "ui/gfx/point.h" 136 #include "ui/gfx/point.h"
137 #include "webkit/glue/webkit_glue.h" 137 #include "webkit/glue/webkit_glue.h"
138 #include "webkit/glue/window_open_disposition.h" 138 #include "webkit/glue/window_open_disposition.h"
139 139
140 #if defined(OS_WIN) 140 #if defined(OS_WIN)
141 #include "app/win/shell.h"
141 #include "chrome/browser/autofill/autofill_ie_toolbar_import_win.h" 142 #include "chrome/browser/autofill/autofill_ie_toolbar_import_win.h"
142 #include "chrome/browser/shell_integration.h" 143 #include "chrome/browser/shell_integration.h"
143 #include "chrome/browser/ssl/ssl_error_info.h" 144 #include "chrome/browser/ssl/ssl_error_info.h"
144 #include "chrome/browser/task_manager/task_manager.h" 145 #include "chrome/browser/task_manager/task_manager.h"
145 #include "chrome/browser/ui/view_ids.h" 146 #include "chrome/browser/ui/view_ids.h"
146 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 147 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
147 #include "ui/base/win/shell.h"
148 #endif // OS_WIN 148 #endif // OS_WIN
149 149
150 #if defined(OS_MACOSX) 150 #if defined(OS_MACOSX)
151 #include "content/browser/find_pasteboard.h" 151 #include "content/browser/find_pasteboard.h"
152 #endif 152 #endif
153 153
154 #if defined(OS_CHROMEOS) 154 #if defined(OS_CHROMEOS)
155 #include "chrome/browser/chromeos/boot_times_loader.h" 155 #include "chrome/browser/chromeos/boot_times_loader.h"
156 #include "chrome/browser/extensions/file_manager_util.h" 156 #include "chrome/browser/extensions/file_manager_util.h"
157 #endif 157 #endif
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 window_ = CreateBrowserWindow(); 432 window_ = CreateBrowserWindow();
433 433
434 #if defined(OS_WIN) 434 #if defined(OS_WIN)
435 { 435 {
436 // TODO: This might hit the disk 436 // TODO: This might hit the disk
437 // http://code.google.com/p/chromium/issues/detail?id=61638 437 // http://code.google.com/p/chromium/issues/detail?id=61638
438 base::ThreadRestrictions::ScopedAllowIO allow_io; 438 base::ThreadRestrictions::ScopedAllowIO allow_io;
439 439
440 // Set the app user model id for this application to that of the application 440 // Set the app user model id for this application to that of the application
441 // name. See http://crbug.com/7028. 441 // name. See http://crbug.com/7028.
442 ui::win::SetAppIdForWindow( 442 app::win::SetAppIdForWindow(
443 is_app() ? 443 is_app() ?
444 ShellIntegration::GetAppId(UTF8ToWide(app_name_), profile_->GetPath()) : 444 ShellIntegration::GetAppId(UTF8ToWide(app_name_), profile_->GetPath()) :
445 ShellIntegration::GetChromiumAppId(profile_->GetPath()), 445 ShellIntegration::GetChromiumAppId(profile_->GetPath()),
446 window()->GetNativeHandle()); 446 window()->GetNativeHandle());
447 } 447 }
448 #endif 448 #endif
449 449
450 NotificationService::current()->Notify( 450 NotificationService::current()->Notify(
451 NotificationType::BROWSER_WINDOW_READY, 451 NotificationType::BROWSER_WINDOW_READY,
452 Source<Browser>(this), 452 Source<Browser>(this),
(...skipping 4273 matching lines...) Expand 10 before | Expand all | Expand 10 after
4726 // end up querying state once they process the tab switch. 4726 // end up querying state once they process the tab switch.
4727 return; 4727 return;
4728 } 4728 }
4729 4729
4730 BookmarkBar::AnimateChangeType animate_type = 4730 BookmarkBar::AnimateChangeType animate_type =
4731 (reason == BOOKMARK_BAR_STATE_CHANGE_PREF_CHANGE) ? 4731 (reason == BOOKMARK_BAR_STATE_CHANGE_PREF_CHANGE) ?
4732 BookmarkBar::ANIMATE_STATE_CHANGE : 4732 BookmarkBar::ANIMATE_STATE_CHANGE :
4733 BookmarkBar::DONT_ANIMATE_STATE_CHANGE; 4733 BookmarkBar::DONT_ANIMATE_STATE_CHANGE;
4734 window_->BookmarkBarStateChanged(animate_type); 4734 window_->BookmarkBarStateChanged(animate_type);
4735 } 4735 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_drop_target_win.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698