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

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

Issue 499163002: Use qualified path for grit/ui_strings.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 #include "chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h" 5 #include "chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #import "base/mac/foundation_util.h" 11 #import "base/mac/foundation_util.h"
12 #include "base/strings/sys_string_conversions.h" 12 #include "base/strings/sys_string_conversions.h"
13 #import "chrome/browser/chrome_browser_application_mac.h" 13 #import "chrome/browser/chrome_browser_application_mac.h"
14 #include "chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.h" 14 #include "chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.h"
15 #include "grit/generated_resources.h" 15 #include "grit/generated_resources.h"
16 #include "grit/ui_strings.h"
17 #include "ui/base/l10n/l10n_util_mac.h" 16 #include "ui/base/l10n/l10n_util_mac.h"
18 #include "ui/base/ui_base_types.h" 17 #include "ui/base/ui_base_types.h"
19 #include "ui/gfx/text_elider.h" 18 #include "ui/gfx/text_elider.h"
19 #include "ui/strings/grit/ui_strings.h"
20 20
21 namespace { 21 namespace {
22 22
23 const int kSlotsPerLine = 50; 23 const int kSlotsPerLine = 50;
24 const int kMessageTextMaxSlots = 2000; 24 const int kMessageTextMaxSlots = 2000;
25 25
26 // The presentation of the NSAlert is delayed, due to an AppKit bug. See 26 // The presentation of the NSAlert is delayed, due to an AppKit bug. See
27 // JavaScriptAppModalDialogCocoa::ShowAppModalDialog for more details. If the 27 // JavaScriptAppModalDialogCocoa::ShowAppModalDialog for more details. If the
28 // NSAlert has not yet been presented, then actions that affect the NSAlert 28 // NSAlert has not yet been presented, then actions that affect the NSAlert
29 // should be delayed as well. Due to the destructive nature of these actions, 29 // should be delayed as well. Due to the destructive nature of these actions,
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 436
437 //////////////////////////////////////////////////////////////////////////////// 437 ////////////////////////////////////////////////////////////////////////////////
438 // NativeAppModalDialog, public: 438 // NativeAppModalDialog, public:
439 439
440 // static 440 // static
441 NativeAppModalDialog* NativeAppModalDialog::CreateNativeJavaScriptPrompt( 441 NativeAppModalDialog* NativeAppModalDialog::CreateNativeJavaScriptPrompt(
442 JavaScriptAppModalDialog* dialog, 442 JavaScriptAppModalDialog* dialog,
443 gfx::NativeWindow parent_window) { 443 gfx::NativeWindow parent_window) {
444 return new JavaScriptAppModalDialogCocoa(dialog); 444 return new JavaScriptAppModalDialogCocoa(dialog);
445 } 445 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698