| OLD | NEW | 
|---|
| 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/browser_window_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" | 
| 6 | 6 | 
| 7 #include "base/bind.h" | 7 #include "base/bind.h" | 
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" | 
| 9 #include "base/logging.h" | 9 #include "base/logging.h" | 
| 10 #import "base/mac/sdk_forward_declarations.h" | 10 #import "base/mac/sdk_forward_declarations.h" | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 49 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" | 49 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" | 
| 50 #include "chrome/browser/ui/profile_chooser_constants.h" | 50 #include "chrome/browser/ui/profile_chooser_constants.h" | 
| 51 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 51 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 
| 52 #include "chrome/browser/web_applications/web_app.h" | 52 #include "chrome/browser/web_applications/web_app.h" | 
| 53 #include "chrome/common/chrome_switches.h" | 53 #include "chrome/common/chrome_switches.h" | 
| 54 #include "chrome/common/features.h" | 54 #include "chrome/common/features.h" | 
| 55 #include "chrome/common/pref_names.h" | 55 #include "chrome/common/pref_names.h" | 
| 56 #include "chrome/grit/generated_resources.h" | 56 #include "chrome/grit/generated_resources.h" | 
| 57 #include "components/bookmarks/common/bookmark_pref_names.h" | 57 #include "components/bookmarks/common/bookmark_pref_names.h" | 
| 58 #include "components/prefs/pref_service.h" | 58 #include "components/prefs/pref_service.h" | 
|  | 59 #include "components/strings/grit/components_strings.h" | 
| 59 #include "components/translate/core/browser/language_state.h" | 60 #include "components/translate/core/browser/language_state.h" | 
| 60 #include "content/public/browser/native_web_keyboard_event.h" | 61 #include "content/public/browser/native_web_keyboard_event.h" | 
| 61 #include "content/public/browser/notification_details.h" | 62 #include "content/public/browser/notification_details.h" | 
| 62 #include "content/public/browser/notification_service.h" | 63 #include "content/public/browser/notification_service.h" | 
| 63 #include "content/public/browser/notification_source.h" | 64 #include "content/public/browser/notification_source.h" | 
| 64 #include "content/public/browser/web_contents.h" | 65 #include "content/public/browser/web_contents.h" | 
| 65 #include "extensions/browser/extension_registry.h" | 66 #include "extensions/browser/extension_registry.h" | 
| 66 #include "extensions/browser/extension_system.h" | 67 #include "extensions/browser/extension_system.h" | 
| 67 #include "extensions/common/constants.h" | 68 #include "extensions/common/constants.h" | 
| 68 #include "grit/components_strings.h" |  | 
| 69 #include "ui/base/l10n/l10n_util_mac.h" | 69 #include "ui/base/l10n/l10n_util_mac.h" | 
| 70 #include "ui/events/keycodes/keyboard_codes.h" | 70 #include "ui/events/keycodes/keyboard_codes.h" | 
| 71 #include "ui/gfx/geometry/rect.h" | 71 #include "ui/gfx/geometry/rect.h" | 
| 72 | 72 | 
| 73 #if BUILDFLAG(ENABLE_ONE_CLICK_SIGNIN) | 73 #if BUILDFLAG(ENABLE_ONE_CLICK_SIGNIN) | 
| 74 #import "chrome/browser/ui/cocoa/one_click_signin_dialog_controller.h" | 74 #import "chrome/browser/ui/cocoa/one_click_signin_dialog_controller.h" | 
| 75 #endif | 75 #endif | 
| 76 | 76 | 
| 77 using content::NativeWebKeyboardEvent; | 77 using content::NativeWebKeyboardEvent; | 
| 78 using content::WebContents; | 78 using content::WebContents; | 
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 837 ExclusiveAccessContext* BrowserWindowCocoa::GetExclusiveAccessContext() { | 837 ExclusiveAccessContext* BrowserWindowCocoa::GetExclusiveAccessContext() { | 
| 838   return [controller_ exclusiveAccessController]; | 838   return [controller_ exclusiveAccessController]; | 
| 839 } | 839 } | 
| 840 | 840 | 
| 841 void BrowserWindowCocoa::ShowImeWarningBubble( | 841 void BrowserWindowCocoa::ShowImeWarningBubble( | 
| 842     const extensions::Extension* extension, | 842     const extensions::Extension* extension, | 
| 843     const base::Callback<void(ImeWarningBubblePermissionStatus status)>& | 843     const base::Callback<void(ImeWarningBubblePermissionStatus status)>& | 
| 844         callback) { | 844         callback) { | 
| 845   NOTREACHED() << "The IME warning bubble is unsupported on this platform."; | 845   NOTREACHED() << "The IME warning bubble is unsupported on this platform."; | 
| 846 } | 846 } | 
| OLD | NEW | 
|---|