Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Side by Side Diff: chrome/browser/ui/browser.h

Issue 7835004: Moved the following IPCs out of chrome into content where they are handled by (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/prerender/prerender_tab_helper.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 int intent_id); 687 int intent_id);
688 688
689 // Helper function to handle find results. 689 // Helper function to handle find results.
690 static void FindReplyHelper(TabContents* tab, 690 static void FindReplyHelper(TabContents* tab,
691 int request_id, 691 int request_id,
692 int number_of_matches, 692 int number_of_matches,
693 const gfx::Rect& selection_rect, 693 const gfx::Rect& selection_rect,
694 int active_match_ordinal, 694 int active_match_ordinal,
695 bool final_update); 695 bool final_update);
696 696
697 // Helper function to handle crashed plugin notifications.
698 static void CrashedPluginHelper(TabContents* tab,
699 const FilePath& plugin_path);
700
701 // Helper function to handle url update notifications.
702 static void UpdateTargetURLHelper(TabContents* tab, int32 page_id,
703 const GURL& url);
704
697 // Calls ExecuteCommandWithDisposition with the given disposition. 705 // Calls ExecuteCommandWithDisposition with the given disposition.
698 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition); 706 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition);
699 707
700 // Calls ExecuteCommandWithDisposition with the given event flags. 708 // Calls ExecuteCommandWithDisposition with the given event flags.
701 void ExecuteCommand(int id, int event_flags); 709 void ExecuteCommand(int id, int event_flags);
702 710
703 // Executes a command if it's enabled. 711 // Executes a command if it's enabled.
704 // Returns true if the command is executed. 712 // Returns true if the command is executed.
705 bool ExecuteCommandIfEnabled(int id); 713 bool ExecuteCommandIfEnabled(int id);
706 714
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 const gfx::Rect& initial_pos, 906 const gfx::Rect& initial_pos,
899 bool user_gesture) OVERRIDE; 907 bool user_gesture) OVERRIDE;
900 virtual void ActivateContents(TabContents* contents) OVERRIDE; 908 virtual void ActivateContents(TabContents* contents) OVERRIDE;
901 virtual void DeactivateContents(TabContents* contents) OVERRIDE; 909 virtual void DeactivateContents(TabContents* contents) OVERRIDE;
902 virtual void LoadingStateChanged(TabContents* source) OVERRIDE; 910 virtual void LoadingStateChanged(TabContents* source) OVERRIDE;
903 virtual void CloseContents(TabContents* source) OVERRIDE; 911 virtual void CloseContents(TabContents* source) OVERRIDE;
904 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) OVERRIDE; 912 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) OVERRIDE;
905 virtual void DetachContents(TabContents* source) OVERRIDE; 913 virtual void DetachContents(TabContents* source) OVERRIDE;
906 virtual bool IsPopupOrPanel(const TabContents* source) const OVERRIDE; 914 virtual bool IsPopupOrPanel(const TabContents* source) const OVERRIDE;
907 virtual bool CanReloadContents(TabContents* source) const; 915 virtual bool CanReloadContents(TabContents* source) const;
908 virtual void UpdateTargetURL(TabContents* source, const GURL& url) OVERRIDE; 916 virtual void UpdateTargetURL(TabContents* source, int32 page_id,
917 const GURL& url) OVERRIDE;
909 virtual void ContentsMouseEvent( 918 virtual void ContentsMouseEvent(
910 TabContents* source, const gfx::Point& location, bool motion) OVERRIDE; 919 TabContents* source, const gfx::Point& location, bool motion) OVERRIDE;
911 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; 920 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE;
912 virtual void SetTabContentBlocked(TabContents* contents, 921 virtual void SetTabContentBlocked(TabContents* contents,
913 bool blocked) OVERRIDE; 922 bool blocked) OVERRIDE;
914 virtual void TabContentsFocused(TabContents* tab_content) OVERRIDE; 923 virtual void TabContentsFocused(TabContents* tab_content) OVERRIDE;
915 virtual bool TakeFocus(bool reverse) OVERRIDE; 924 virtual bool TakeFocus(bool reverse) OVERRIDE;
916 virtual bool IsApplication() const OVERRIDE; 925 virtual bool IsApplication() const OVERRIDE;
917 virtual void ConvertContentsToApplication(TabContents* source) OVERRIDE; 926 virtual void ConvertContentsToApplication(TabContents* source) OVERRIDE;
918 virtual void BeforeUnloadFired(TabContents* source, 927 virtual void BeforeUnloadFired(TabContents* source,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 const string16& data, 982 const string16& data,
974 int intent_id) OVERRIDE; 983 int intent_id) OVERRIDE;
975 984
976 virtual void FindReply(TabContents* tab, 985 virtual void FindReply(TabContents* tab,
977 int request_id, 986 int request_id,
978 int number_of_matches, 987 int number_of_matches,
979 const gfx::Rect& selection_rect, 988 const gfx::Rect& selection_rect,
980 int active_match_ordinal, 989 int active_match_ordinal,
981 bool final_update) OVERRIDE; 990 bool final_update) OVERRIDE;
982 991
992 virtual void CrashedPlugin(TabContents* tab,
993 const FilePath& plugin_path) OVERRIDE;
994
983 // Overridden from TabContentsWrapperDelegate: 995 // Overridden from TabContentsWrapperDelegate:
984 virtual void OnDidGetApplicationInfo(TabContentsWrapper* source, 996 virtual void OnDidGetApplicationInfo(TabContentsWrapper* source,
985 int32 page_id) OVERRIDE; 997 int32 page_id) OVERRIDE;
986 virtual void OnInstallApplication( 998 virtual void OnInstallApplication(
987 TabContentsWrapper* source, 999 TabContentsWrapper* source,
988 const WebApplicationInfo& app_info) OVERRIDE; 1000 const WebApplicationInfo& app_info) OVERRIDE;
989 1001
990 // Note that the caller is responsible for deleting |old_tab_contents|. 1002 // Note that the caller is responsible for deleting |old_tab_contents|.
991 virtual void SwapTabContents(TabContentsWrapper* old_tab_contents, 1003 virtual void SwapTabContents(TabContentsWrapper* old_tab_contents,
992 TabContentsWrapper* new_tab_contents); 1004 TabContentsWrapper* new_tab_contents);
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 // Tab to notify when the browser exits fullscreen mode. 1422 // Tab to notify when the browser exits fullscreen mode.
1411 TabContentsWrapper* fullscreened_tab_; 1423 TabContentsWrapper* fullscreened_tab_;
1412 1424
1413 // True if the current tab is in fullscreen mode. 1425 // True if the current tab is in fullscreen mode.
1414 bool tab_caused_fullscreen_; 1426 bool tab_caused_fullscreen_;
1415 1427
1416 DISALLOW_COPY_AND_ASSIGN(Browser); 1428 DISALLOW_COPY_AND_ASSIGN(Browser);
1417 }; 1429 };
1418 1430
1419 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1431 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_tab_helper.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698