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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 429 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
430 TabContents* old_contents, | 430 TabContents* old_contents, |
431 TabContents* new_contents, | 431 TabContents* new_contents, |
432 int index) OVERRIDE; | 432 int index) OVERRIDE; |
433 virtual void TabPinnedStateChanged(TabContents* contents, | 433 virtual void TabPinnedStateChanged(TabContents* contents, |
434 int index) OVERRIDE; | 434 int index) OVERRIDE; |
435 virtual void TabStripEmpty() OVERRIDE; | 435 virtual void TabStripEmpty() OVERRIDE; |
436 | 436 |
437 // Overridden from content::WebContentsDelegate: | 437 // Overridden from content::WebContentsDelegate: |
438 virtual bool PreHandleKeyboardEvent( | 438 virtual bool PreHandleKeyboardEvent( |
| 439 content::WebContents* source, |
439 const content::NativeWebKeyboardEvent& event, | 440 const content::NativeWebKeyboardEvent& event, |
440 bool* is_keyboard_shortcut) OVERRIDE; | 441 bool* is_keyboard_shortcut) OVERRIDE; |
441 virtual void HandleKeyboardEvent( | 442 virtual void HandleKeyboardEvent( |
| 443 content::WebContents* source, |
442 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 444 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
443 | 445 |
444 // Figure out if there are tabs that have beforeunload handlers. | 446 // Figure out if there are tabs that have beforeunload handlers. |
445 bool TabsNeedBeforeUnloadFired(); | 447 bool TabsNeedBeforeUnloadFired(); |
446 | 448 |
447 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } | 449 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } |
448 bool is_type_popup() const { return type_ == TYPE_POPUP; } | 450 bool is_type_popup() const { return type_ == TYPE_POPUP; } |
449 bool is_type_panel() const { return type_ == TYPE_PANEL; } | 451 bool is_type_panel() const { return type_ == TYPE_PANEL; } |
450 | 452 |
451 bool is_app() const; | 453 bool is_app() const; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 const gfx::Rect& pos) OVERRIDE; | 538 const gfx::Rect& pos) OVERRIDE; |
537 virtual bool IsPopupOrPanel( | 539 virtual bool IsPopupOrPanel( |
538 const content::WebContents* source) const OVERRIDE; | 540 const content::WebContents* source) const OVERRIDE; |
539 virtual void UpdateTargetURL(content::WebContents* source, int32 page_id, | 541 virtual void UpdateTargetURL(content::WebContents* source, int32 page_id, |
540 const GURL& url) OVERRIDE; | 542 const GURL& url) OVERRIDE; |
541 virtual void ContentsMouseEvent(content::WebContents* source, | 543 virtual void ContentsMouseEvent(content::WebContents* source, |
542 const gfx::Point& location, | 544 const gfx::Point& location, |
543 bool motion) OVERRIDE; | 545 bool motion) OVERRIDE; |
544 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; | 546 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; |
545 virtual void WebContentsFocused(content::WebContents* content) OVERRIDE; | 547 virtual void WebContentsFocused(content::WebContents* content) OVERRIDE; |
546 virtual bool TakeFocus(bool reverse) OVERRIDE; | 548 virtual bool TakeFocus(content::WebContents* source, bool reverse) OVERRIDE; |
547 virtual bool IsApplication() const OVERRIDE; | 549 virtual bool IsApplication() const OVERRIDE; |
548 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; | 550 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; |
549 virtual void BeforeUnloadFired(content::WebContents* source, | 551 virtual void BeforeUnloadFired(content::WebContents* source, |
550 bool proceed, | 552 bool proceed, |
551 bool* proceed_to_fire_unload) OVERRIDE; | 553 bool* proceed_to_fire_unload) OVERRIDE; |
552 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; | 554 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; |
553 virtual void RenderWidgetShowing() OVERRIDE; | 555 virtual void RenderWidgetShowing() OVERRIDE; |
554 virtual int GetExtraRenderViewHeight() const OVERRIDE; | 556 virtual int GetExtraRenderViewHeight() const OVERRIDE; |
555 virtual void OnStartDownload(content::WebContents* source, | 557 virtual void OnStartDownload(content::WebContents* source, |
556 content::DownloadItem* download) OVERRIDE; | 558 content::DownloadItem* download) OVERRIDE; |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
909 bool window_has_shown_; | 911 bool window_has_shown_; |
910 | 912 |
911 // Currently open color chooser. Non-NULL after OpenColorChooser is called and | 913 // Currently open color chooser. Non-NULL after OpenColorChooser is called and |
912 // before DidEndColorChooser is called. | 914 // before DidEndColorChooser is called. |
913 scoped_ptr<content::ColorChooser> color_chooser_; | 915 scoped_ptr<content::ColorChooser> color_chooser_; |
914 | 916 |
915 DISALLOW_COPY_AND_ASSIGN(Browser); | 917 DISALLOW_COPY_AND_ASSIGN(Browser); |
916 }; | 918 }; |
917 | 919 |
918 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 920 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |