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_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 content::SecurityStyleExplanations* security_style_explanations) override; | 483 content::SecurityStyleExplanations* security_style_explanations) override; |
484 void ShowCertificateViewerInDevTools( | 484 void ShowCertificateViewerInDevTools( |
485 content::WebContents* web_contents, | 485 content::WebContents* web_contents, |
486 int cert_id) override; | 486 int cert_id) override; |
487 std::unique_ptr<content::BluetoothChooser> RunBluetoothChooser( | 487 std::unique_ptr<content::BluetoothChooser> RunBluetoothChooser( |
488 content::RenderFrameHost* frame, | 488 content::RenderFrameHost* frame, |
489 const content::BluetoothChooser::EventHandler& event_handler) override; | 489 const content::BluetoothChooser::EventHandler& event_handler) override; |
490 void RequestAppBannerFromDevTools( | 490 void RequestAppBannerFromDevTools( |
491 content::WebContents* web_contents) override; | 491 content::WebContents* web_contents) override; |
492 | 492 |
| 493 bool RequestAppBanner(content::WebContents* web_contents); |
| 494 |
493 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } | 495 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } |
494 bool is_type_popup() const { return type_ == TYPE_POPUP; } | 496 bool is_type_popup() const { return type_ == TYPE_POPUP; } |
495 | 497 |
496 bool is_app() const; | 498 bool is_app() const; |
497 bool is_devtools() const; | 499 bool is_devtools() const; |
498 | 500 |
499 // True when the mouse cursor is locked. | 501 // True when the mouse cursor is locked. |
500 bool IsMouseLocked() const; | 502 bool IsMouseLocked() const; |
501 | 503 |
502 // Called each time the browser window is shown. | 504 // Called each time the browser window is shown. |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 // The following factory is used for chrome update coalescing. | 1016 // The following factory is used for chrome update coalescing. |
1015 base::WeakPtrFactory<Browser> chrome_updater_factory_; | 1017 base::WeakPtrFactory<Browser> chrome_updater_factory_; |
1016 | 1018 |
1017 // The following factory is used to close the frame at a later time. | 1019 // The following factory is used to close the frame at a later time. |
1018 base::WeakPtrFactory<Browser> weak_factory_; | 1020 base::WeakPtrFactory<Browser> weak_factory_; |
1019 | 1021 |
1020 DISALLOW_COPY_AND_ASSIGN(Browser); | 1022 DISALLOW_COPY_AND_ASSIGN(Browser); |
1021 }; | 1023 }; |
1022 | 1024 |
1023 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1025 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |