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

Side by Side Diff: chrome/browser/ui/cocoa/hung_renderer_controller.mm

Issue 515433002: Cleanup: Remove unneeded ui/ grit header includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #import "chrome/browser/ui/cocoa/hung_renderer_controller.h" 5 #import "chrome/browser/ui/cocoa/hung_renderer_controller.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/mac/bundle_locations.h" 9 #include "base/mac/bundle_locations.h"
10 #include "base/mac/mac_util.h" 10 #include "base/mac/mac_util.h"
11 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
12 #include "chrome/browser/favicon/favicon_tab_helper.h" 12 #include "chrome/browser/favicon/favicon_tab_helper.h"
13 #include "chrome/browser/ui/browser_dialogs.h" 13 #include "chrome/browser/ui/browser_dialogs.h"
14 #import "chrome/browser/ui/cocoa/multi_key_equivalent_button.h" 14 #import "chrome/browser/ui/cocoa/multi_key_equivalent_button.h"
15 #import "chrome/browser/ui/cocoa/tab_contents/favicon_util_mac.h" 15 #import "chrome/browser/ui/cocoa/tab_contents/favicon_util_mac.h"
16 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" 16 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
17 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" 17 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h"
18 #include "chrome/common/logging_chrome.h" 18 #include "chrome/common/logging_chrome.h"
19 #include "content/public/browser/render_process_host.h" 19 #include "content/public/browser/render_process_host.h"
20 #include "content/public/browser/render_view_host.h" 20 #include "content/public/browser/render_view_host.h"
21 #include "content/public/browser/web_contents.h" 21 #include "content/public/browser/web_contents.h"
22 #include "content/public/common/result_codes.h" 22 #include "content/public/common/result_codes.h"
23 #include "grit/theme_resources.h" 23 #include "grit/theme_resources.h"
24 #include "skia/ext/skia_utils_mac.h" 24 #include "skia/ext/skia_utils_mac.h"
25 #include "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutT weaker.h" 25 #include "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutT weaker.h"
26 #include "ui/base/l10n/l10n_util_mac.h" 26 #include "ui/base/l10n/l10n_util_mac.h"
27 #include "ui/base/resource/resource_bundle.h" 27 #include "ui/base/resource/resource_bundle.h"
28 #include "ui/gfx/image/image.h" 28 #include "ui/gfx/image/image.h"
29 #include "ui/resources/grit/ui_resources.h"
30 29
31 using content::WebContents; 30 using content::WebContents;
32 31
33 namespace { 32 namespace {
34 // We only support showing one of these at a time per app. The 33 // We only support showing one of these at a time per app. The
35 // controller owns itself and is released when its window is closed. 34 // controller owns itself and is released when its window is closed.
36 HungRendererController* g_instance = NULL; 35 HungRendererController* g_instance = NULL;
37 } // namespace 36 } // namespace
38 37
39 class HungRendererWebContentsObserverBridge 38 class HungRendererWebContentsObserverBridge
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 [g_instance showForWebContents:contents]; 230 [g_instance showForWebContents:contents];
232 } 231 }
233 } 232 }
234 233
235 void HideHungRendererDialog(WebContents* contents) { 234 void HideHungRendererDialog(WebContents* contents) {
236 if (!logging::DialogsAreSuppressed() && g_instance) 235 if (!logging::DialogsAreSuppressed() && g_instance)
237 [g_instance endForWebContents:contents]; 236 [g_instance endForWebContents:contents];
238 } 237 }
239 238
240 } // namespace chrome 239 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698