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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_cocoa.h

Issue 2529733002: [WebPayments] Move views-specific code to c/b/ui/views/ (Closed)
Patch Set: Implement ShowWebPaymentsDialog in TestBrowserWindow Created 4 years 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 #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 10 matching lines...) Expand all
21 @class NSEvent; 21 @class NSEvent;
22 @class NSMenu; 22 @class NSMenu;
23 @class NSWindow; 23 @class NSWindow;
24 24
25 namespace extensions { 25 namespace extensions {
26 class ActiveTabPermissionGranter; 26 class ActiveTabPermissionGranter;
27 class Command; 27 class Command;
28 class Extension; 28 class Extension;
29 } 29 }
30 30
31 namespace payments {
32 class PaymentRequestImpl;
33 }
34
31 namespace security_state { 35 namespace security_state {
32 struct SecurityInfo; 36 struct SecurityInfo;
33 } // namespace security_state 37 } // namespace security_state
34 38
35 // An implementation of BrowserWindow for Cocoa. Bridges between C++ and 39 // An implementation of BrowserWindow for Cocoa. Bridges between C++ and
36 // the Cocoa NSWindow. Cross-platform code will interact with this object when 40 // the Cocoa NSWindow. Cross-platform code will interact with this object when
37 // it needs to manipulate the window. 41 // it needs to manipulate the window.
38 42
39 class BrowserWindowCocoa 43 class BrowserWindowCocoa
40 : public BrowserWindow, 44 : public BrowserWindow,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 const signin::ManageAccountsParams& manage_accounts_params, 154 const signin::ManageAccountsParams& manage_accounts_params,
151 signin_metrics::AccessPoint access_point) override; 155 signin_metrics::AccessPoint access_point) override;
152 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; 156 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override;
153 void ExecuteExtensionCommand(const extensions::Extension* extension, 157 void ExecuteExtensionCommand(const extensions::Extension* extension,
154 const extensions::Command& command) override; 158 const extensions::Command& command) override;
155 ExclusiveAccessContext* GetExclusiveAccessContext() override; 159 ExclusiveAccessContext* GetExclusiveAccessContext() override;
156 void ShowImeWarningBubble( 160 void ShowImeWarningBubble(
157 const extensions::Extension* extension, 161 const extensions::Extension* extension,
158 const base::Callback<void(ImeWarningBubblePermissionStatus status)>& 162 const base::Callback<void(ImeWarningBubblePermissionStatus status)>&
159 callback) override; 163 callback) override;
164 void ShowWebPaymentsDialog(payments::PaymentRequestImpl* impl) override;
160 165
161 // Overridden from ExtensionKeybindingRegistry::Delegate: 166 // Overridden from ExtensionKeybindingRegistry::Delegate:
162 extensions::ActiveTabPermissionGranter* GetActiveTabPermissionGranter() 167 extensions::ActiveTabPermissionGranter* GetActiveTabPermissionGranter()
163 override; 168 override;
164 169
165 // Adds the given FindBar cocoa controller to this browser window. 170 // Adds the given FindBar cocoa controller to this browser window.
166 void AddFindBar(FindBarCocoaController* find_bar_cocoa_controller); 171 void AddFindBar(FindBarCocoaController* find_bar_cocoa_controller);
167 172
168 // Updates the window's alert state. If the new alert state is 173 // Updates the window's alert state. If the new alert state is
169 // TabAlertState::AUDIO_PLAYING or TabAlertState::AUDIO_MUTING then sets 174 // TabAlertState::AUDIO_PLAYING or TabAlertState::AUDIO_MUTING then sets
(...skipping 23 matching lines...) Expand all
193 ui::WindowShowState initial_show_state_; 198 ui::WindowShowState initial_show_state_;
194 NSInteger attention_request_id_; // identifier from requestUserAttention 199 NSInteger attention_request_id_; // identifier from requestUserAttention
195 200
196 // Preserves window alert state to show appropriate icon in the window title 201 // 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 202 // which can be audio playing, muting or none (determined by alert state of
198 // tabs. 203 // tabs.
199 TabAlertState alert_state_; 204 TabAlertState alert_state_;
200 }; 205 };
201 206
202 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ 207 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698