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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 void TabReplacedAt(TabStripModel* tab_strip_model, | 450 void TabReplacedAt(TabStripModel* tab_strip_model, |
451 content::WebContents* old_contents, | 451 content::WebContents* old_contents, |
452 content::WebContents* new_contents, | 452 content::WebContents* new_contents, |
453 int index) override; | 453 int index) override; |
454 void TabPinnedStateChanged(content::WebContents* contents, | 454 void TabPinnedStateChanged(content::WebContents* contents, |
455 int index) override; | 455 int index) override; |
456 void TabStripEmpty() override; | 456 void TabStripEmpty() override; |
457 | 457 |
458 // Overridden from content::WebContentsDelegate: | 458 // Overridden from content::WebContentsDelegate: |
459 bool CanOverscrollContent() const override; | 459 bool CanOverscrollContent() const override; |
| 460 bool ShouldSuppressDialogs(content::WebContents* source, |
| 461 bool before_unload) override; |
460 bool ShouldPreserveAbortedURLs(content::WebContents* source) override; | 462 bool ShouldPreserveAbortedURLs(content::WebContents* source) override; |
461 void SetFocusToLocationBar(bool select_all) override; | 463 void SetFocusToLocationBar(bool select_all) override; |
462 bool PreHandleKeyboardEvent(content::WebContents* source, | 464 bool PreHandleKeyboardEvent(content::WebContents* source, |
463 const content::NativeWebKeyboardEvent& event, | 465 const content::NativeWebKeyboardEvent& event, |
464 bool* is_keyboard_shortcut) override; | 466 bool* is_keyboard_shortcut) override; |
465 void HandleKeyboardEvent( | 467 void HandleKeyboardEvent( |
466 content::WebContents* source, | 468 content::WebContents* source, |
467 const content::NativeWebKeyboardEvent& event) override; | 469 const content::NativeWebKeyboardEvent& event) override; |
468 void ShowValidationMessage(content::WebContents* web_contents, | 470 void ShowValidationMessage(content::WebContents* web_contents, |
469 const gfx::Rect& anchor_in_root_view, | 471 const gfx::Rect& anchor_in_root_view, |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 // The following factory is used for chrome update coalescing. | 1011 // The following factory is used for chrome update coalescing. |
1010 base::WeakPtrFactory<Browser> chrome_updater_factory_; | 1012 base::WeakPtrFactory<Browser> chrome_updater_factory_; |
1011 | 1013 |
1012 // The following factory is used to close the frame at a later time. | 1014 // The following factory is used to close the frame at a later time. |
1013 base::WeakPtrFactory<Browser> weak_factory_; | 1015 base::WeakPtrFactory<Browser> weak_factory_; |
1014 | 1016 |
1015 DISALLOW_COPY_AND_ASSIGN(Browser); | 1017 DISALLOW_COPY_AND_ASSIGN(Browser); |
1016 }; | 1018 }; |
1017 | 1019 |
1018 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1020 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |