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

Side by Side Diff: chrome/browser/ui/views/message_center/web_notification_tray_win.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/message_center/web_notification_tray.h" 5 #include "chrome/browser/ui/views/message_center/web_notification_tray.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include "base/win/windows_version.h" 8 #include "base/win/windows_version.h"
9 #include "chrome/browser/app_icon_win.h" 9 #include "chrome/browser/app_icon_win.h"
10 #include "chrome/browser/profiles/profile_manager.h" 10 #include "chrome/browser/profiles/profile_manager.h"
11 #include "chrome/browser/status_icons/status_icon.h" 11 #include "chrome/browser/status_icons/status_icon.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/host_desktop.h" 13 #include "chrome/browser/ui/host_desktop.h"
14 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" 14 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
15 #include "chrome/browser/ui/singleton_tabs.h" 15 #include "chrome/browser/ui/singleton_tabs.h"
16 #include "chrome/common/url_constants.h" 16 #include "chrome/common/url_constants.h"
17 #include "grit/chromium_strings.h" 17 #include "grit/chromium_strings.h"
18 #include "third_party/skia/include/core/SkBitmap.h" 18 #include "third_party/skia/include/core/SkBitmap.h"
19 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
20 #include "ui/base/resource/resource_bundle.h"
21 #include "ui/gfx/image/image_skia.h" 20 #include "ui/gfx/image/image_skia.h"
22 21
23 namespace message_center { 22 namespace message_center {
24 void WebNotificationTray::OnBalloonClicked() { 23 void WebNotificationTray::OnBalloonClicked() {
25 chrome::ScopedTabbedBrowserDisplayer displayer( 24 chrome::ScopedTabbedBrowserDisplayer displayer(
26 ProfileManager::GetLastUsedProfileAllowedByPolicy(), 25 ProfileManager::GetLastUsedProfileAllowedByPolicy(),
27 chrome::GetActiveDesktop()); 26 chrome::GetActiveDesktop());
28 chrome::ShowSingletonTab(displayer.browser(), 27 chrome::ShowSingletonTab(displayer.browser(),
29 GURL(chrome::kNotificationsHelpURL)); 28 GURL(chrome::kNotificationsHelpURL));
30 } 29 }
(...skipping 24 matching lines...) Expand all
55 l10n_util::GetStringUTF16(IDS_MESSAGE_CENTER_BALLOON_TITLE), 54 l10n_util::GetStringUTF16(IDS_MESSAGE_CENTER_BALLOON_TITLE),
56 l10n_util::GetStringUTF16(IDS_MESSAGE_CENTER_BALLOON_TEXT)); 55 l10n_util::GetStringUTF16(IDS_MESSAGE_CENTER_BALLOON_TEXT));
57 } 56 }
58 57
59 void WebNotificationTray::EnforceStatusIconVisible() { 58 void WebNotificationTray::EnforceStatusIconVisible() {
60 DCHECK(status_icon_); 59 DCHECK(status_icon_);
61 status_icon_->ForceVisible(); 60 status_icon_->ForceVisible();
62 } 61 }
63 62
64 } // namespace message_center 63 } // namespace message_center
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/origin_chip_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698