| 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 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| 7 | 7 |
| 8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 const content::NativeWebKeyboardEvent& event) override; | 141 const content::NativeWebKeyboardEvent& event) override; |
| 142 void CutCopyPaste(int command_id) override; | 142 void CutCopyPaste(int command_id) override; |
| 143 WindowOpenDisposition GetDispositionForPopupBounds( | 143 WindowOpenDisposition GetDispositionForPopupBounds( |
| 144 const gfx::Rect& bounds) override; | 144 const gfx::Rect& bounds) override; |
| 145 FindBar* CreateFindBar() override; | 145 FindBar* CreateFindBar() override; |
| 146 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() | 146 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() |
| 147 override; | 147 override; |
| 148 void ShowAvatarBubbleFromAvatarButton( | 148 void ShowAvatarBubbleFromAvatarButton( |
| 149 AvatarBubbleMode mode, | 149 AvatarBubbleMode mode, |
| 150 const signin::ManageAccountsParams& manage_accounts_params, | 150 const signin::ManageAccountsParams& manage_accounts_params, |
| 151 signin_metrics::AccessPoint access_point) override; | 151 signin_metrics::AccessPoint access_point, |
| 152 bool is_source_keyboard) override; |
| 152 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; | 153 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; |
| 153 void ExecuteExtensionCommand(const extensions::Extension* extension, | 154 void ExecuteExtensionCommand(const extensions::Extension* extension, |
| 154 const extensions::Command& command) override; | 155 const extensions::Command& command) override; |
| 155 ExclusiveAccessContext* GetExclusiveAccessContext() override; | 156 ExclusiveAccessContext* GetExclusiveAccessContext() override; |
| 156 void ShowImeWarningBubble( | 157 void ShowImeWarningBubble( |
| 157 const extensions::Extension* extension, | 158 const extensions::Extension* extension, |
| 158 const base::Callback<void(ImeWarningBubblePermissionStatus status)>& | 159 const base::Callback<void(ImeWarningBubblePermissionStatus status)>& |
| 159 callback) override; | 160 callback) override; |
| 160 | 161 |
| 161 // Overridden from ExtensionKeybindingRegistry::Delegate: | 162 // Overridden from ExtensionKeybindingRegistry::Delegate: |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 ui::WindowShowState initial_show_state_; | 194 ui::WindowShowState initial_show_state_; |
| 194 NSInteger attention_request_id_; // identifier from requestUserAttention | 195 NSInteger attention_request_id_; // identifier from requestUserAttention |
| 195 | 196 |
| 196 // Preserves window alert state to show appropriate icon in the window title | 197 // Preserves window alert state to show appropriate icon in the window title |
| 197 // which can be audio playing, muting or none (determined by alert state of | 198 // which can be audio playing, muting or none (determined by alert state of |
| 198 // tabs. | 199 // tabs. |
| 199 TabAlertState alert_state_; | 200 TabAlertState alert_state_; |
| 200 }; | 201 }; |
| 201 | 202 |
| 202 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 203 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |