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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 // when it is removed from it. | 421 // when it is removed from it. |
422 void RegisterKeepAlive(); | 422 void RegisterKeepAlive(); |
423 void UnregisterKeepAlive(); | 423 void UnregisterKeepAlive(); |
424 | 424 |
425 // Interface implementations //////////////////////////////////////////////// | 425 // Interface implementations //////////////////////////////////////////////// |
426 | 426 |
427 // Overridden from content::PageNavigator: | 427 // Overridden from content::PageNavigator: |
428 content::WebContents* OpenURL(const content::OpenURLParams& params) override; | 428 content::WebContents* OpenURL(const content::OpenURLParams& params) override; |
429 | 429 |
430 // Overridden from TabStripModelObserver: | 430 // Overridden from TabStripModelObserver: |
431 void TabInsertedAt(content::WebContents* contents, | 431 void TabInsertedAt(TabStripModel* tab_strip_model, |
| 432 content::WebContents* contents, |
432 int index, | 433 int index, |
433 bool foreground) override; | 434 bool foreground) override; |
434 void TabClosingAt(TabStripModel* tab_strip_model, | 435 void TabClosingAt(TabStripModel* tab_strip_model, |
435 content::WebContents* contents, | 436 content::WebContents* contents, |
436 int index) override; | 437 int index) override; |
437 void TabDetachedAt(content::WebContents* contents, int index) override; | 438 void TabDetachedAt(content::WebContents* contents, int index) override; |
438 void TabDeactivated(content::WebContents* contents) override; | 439 void TabDeactivated(content::WebContents* contents) override; |
439 void ActiveTabChanged(content::WebContents* old_contents, | 440 void ActiveTabChanged(content::WebContents* old_contents, |
440 content::WebContents* new_contents, | 441 content::WebContents* new_contents, |
441 int index, | 442 int index, |
442 int reason) override; | 443 int reason) override; |
443 void TabMoved(content::WebContents* contents, | 444 void TabMoved(content::WebContents* contents, |
444 int from_index, | 445 int from_index, |
445 int to_index) override; | 446 int to_index) override; |
446 void TabReplacedAt(TabStripModel* tab_strip_model, | 447 void TabReplacedAt(TabStripModel* tab_strip_model, |
447 content::WebContents* old_contents, | 448 content::WebContents* old_contents, |
448 content::WebContents* new_contents, | 449 content::WebContents* new_contents, |
449 int index) override; | 450 int index) override; |
450 void TabPinnedStateChanged(content::WebContents* contents, | 451 void TabPinnedStateChanged(TabStripModel* tab_strip_model, |
| 452 content::WebContents* contents, |
451 int index) override; | 453 int index) override; |
452 void TabStripEmpty() override; | 454 void TabStripEmpty() override; |
453 | 455 |
454 // Overridden from content::WebContentsDelegate: | 456 // Overridden from content::WebContentsDelegate: |
455 bool CanOverscrollContent() const override; | 457 bool CanOverscrollContent() const override; |
456 bool ShouldPreserveAbortedURLs(content::WebContents* source) override; | 458 bool ShouldPreserveAbortedURLs(content::WebContents* source) override; |
457 void SetFocusToLocationBar(bool select_all) override; | 459 void SetFocusToLocationBar(bool select_all) override; |
458 bool PreHandleKeyboardEvent(content::WebContents* source, | 460 bool PreHandleKeyboardEvent(content::WebContents* source, |
459 const content::NativeWebKeyboardEvent& event, | 461 const content::NativeWebKeyboardEvent& event, |
460 bool* is_keyboard_shortcut) override; | 462 bool* is_keyboard_shortcut) override; |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 // The following factory is used for chrome update coalescing. | 1004 // The following factory is used for chrome update coalescing. |
1003 base::WeakPtrFactory<Browser> chrome_updater_factory_; | 1005 base::WeakPtrFactory<Browser> chrome_updater_factory_; |
1004 | 1006 |
1005 // The following factory is used to close the frame at a later time. | 1007 // The following factory is used to close the frame at a later time. |
1006 base::WeakPtrFactory<Browser> weak_factory_; | 1008 base::WeakPtrFactory<Browser> weak_factory_; |
1007 | 1009 |
1008 DISALLOW_COPY_AND_ASSIGN(Browser); | 1010 DISALLOW_COPY_AND_ASSIGN(Browser); |
1009 }; | 1011 }; |
1010 | 1012 |
1011 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1013 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |