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 | |
495 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } | 493 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } |
496 bool is_type_popup() const { return type_ == TYPE_POPUP; } | 494 bool is_type_popup() const { return type_ == TYPE_POPUP; } |
497 | 495 |
498 bool is_app() const; | 496 bool is_app() const; |
499 bool is_devtools() const; | 497 bool is_devtools() const; |
500 | 498 |
501 // True when the mouse cursor is locked. | 499 // True when the mouse cursor is locked. |
502 bool IsMouseLocked() const; | 500 bool IsMouseLocked() const; |
503 | 501 |
504 // Called each time the browser window is shown. | 502 // Called each time the browser window is shown. |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 // The following factory is used for chrome update coalescing. | 1014 // The following factory is used for chrome update coalescing. |
1017 base::WeakPtrFactory<Browser> chrome_updater_factory_; | 1015 base::WeakPtrFactory<Browser> chrome_updater_factory_; |
1018 | 1016 |
1019 // The following factory is used to close the frame at a later time. | 1017 // The following factory is used to close the frame at a later time. |
1020 base::WeakPtrFactory<Browser> weak_factory_; | 1018 base::WeakPtrFactory<Browser> weak_factory_; |
1021 | 1019 |
1022 DISALLOW_COPY_AND_ASSIGN(Browser); | 1020 DISALLOW_COPY_AND_ASSIGN(Browser); |
1023 }; | 1021 }; |
1024 | 1022 |
1025 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1023 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |