OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/lifetime/browser_close_manager.h" | 10 #include "chrome/browser/lifetime/browser_close_manager.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class Browser; | 25 class Browser; |
26 class DownloadShelf; | 26 class DownloadShelf; |
27 class ExclusiveAccessContext; | 27 class ExclusiveAccessContext; |
28 class FindBar; | 28 class FindBar; |
29 class GURL; | 29 class GURL; |
30 class LocationBar; | 30 class LocationBar; |
31 class Profile; | 31 class Profile; |
32 class StatusBubble; | 32 class StatusBubble; |
33 class ToolbarActionsBar; | 33 class ToolbarActionsBar; |
34 | 34 |
35 struct WebApplicationInfo; | |
36 | |
37 namespace autofill { | 35 namespace autofill { |
38 class SaveCardBubbleController; | 36 class SaveCardBubbleController; |
39 class SaveCardBubbleView; | 37 class SaveCardBubbleView; |
40 } | 38 } |
41 | 39 |
42 namespace content { | 40 namespace content { |
43 class WebContents; | 41 class WebContents; |
44 struct NativeWebKeyboardEvent; | 42 struct NativeWebKeyboardEvent; |
45 enum class KeyboardEventProcessingResult; | 43 enum class KeyboardEventProcessingResult; |
46 } | 44 } |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 // Visible() functions are renamed to Available(). | 231 // Visible() functions are renamed to Available(). |
234 virtual bool IsToolbarShowing() const = 0; | 232 virtual bool IsToolbarShowing() const = 0; |
235 | 233 |
236 // Shows the Update Recommended dialog box. | 234 // Shows the Update Recommended dialog box. |
237 virtual void ShowUpdateChromeDialog() = 0; | 235 virtual void ShowUpdateChromeDialog() = 0; |
238 | 236 |
239 // Shows the Bookmark bubble. |url| is the URL being bookmarked, | 237 // Shows the Bookmark bubble. |url| is the URL being bookmarked, |
240 // |already_bookmarked| is true if the url is already bookmarked. | 238 // |already_bookmarked| is true if the url is already bookmarked. |
241 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; | 239 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; |
242 | 240 |
243 // Callback type used with the ShowBookmarkAppBubble() method. The boolean | |
244 // parameter is true when the user accepts the dialog. The WebApplicationInfo | |
245 // parameter contains the WebApplicationInfo as edited by the user. | |
246 typedef base::Callback<void(bool, const WebApplicationInfo&)> | |
247 ShowBookmarkAppBubbleCallback; | |
248 | |
249 // Shows the Bookmark App bubble. | |
250 // See Extension::InitFromValueFlags::FROM_BOOKMARK for a description of | |
251 // bookmark apps. | |
252 // | |
253 // |web_app_info| is the WebApplicationInfo being converted into an app. | |
254 virtual void ShowBookmarkAppBubble( | |
255 const WebApplicationInfo& web_app_info, | |
256 const ShowBookmarkAppBubbleCallback& callback) = 0; | |
257 | |
258 // Shows the "Save credit card" bubble. | 241 // Shows the "Save credit card" bubble. |
259 virtual autofill::SaveCardBubbleView* ShowSaveCreditCardBubble( | 242 virtual autofill::SaveCardBubbleView* ShowSaveCreditCardBubble( |
260 content::WebContents* contents, | 243 content::WebContents* contents, |
261 autofill::SaveCardBubbleController* controller, | 244 autofill::SaveCardBubbleController* controller, |
262 bool is_user_gesture) = 0; | 245 bool is_user_gesture) = 0; |
263 | 246 |
264 // Shows the translate bubble. | 247 // Shows the translate bubble. |
265 // | 248 // |
266 // |is_user_gesture| is true when the bubble is shown on the user's deliberate | 249 // |is_user_gesture| is true when the bubble is shown on the user's deliberate |
267 // action. | 250 // action. |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 virtual std::string GetWorkspace() const = 0; | 372 virtual std::string GetWorkspace() const = 0; |
390 virtual bool IsVisibleOnAllWorkspaces() const = 0; | 373 virtual bool IsVisibleOnAllWorkspaces() const = 0; |
391 | 374 |
392 protected: | 375 protected: |
393 friend class BrowserCloseManager; | 376 friend class BrowserCloseManager; |
394 friend class BrowserView; | 377 friend class BrowserView; |
395 virtual void DestroyBrowser() = 0; | 378 virtual void DestroyBrowser() = 0; |
396 }; | 379 }; |
397 | 380 |
398 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 381 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |