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

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
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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 int intent_id); 685 int intent_id);
686 686
687 // Helper function to handle find results. 687 // Helper function to handle find results.
688 static void FindReplyHelper(TabContents* tab, 688 static void FindReplyHelper(TabContents* tab,
689 int request_id, 689 int request_id,
690 int number_of_matches, 690 int number_of_matches,
691 const gfx::Rect& selection_rect, 691 const gfx::Rect& selection_rect,
692 int active_match_ordinal, 692 int active_match_ordinal,
693 bool final_update); 693 bool final_update);
694 694
695 // Helper function to handle crashed plugin notifications.
696 static void CrashedPluginHelper(TabContents* tab,
697 const FilePath& plugin_path);
698
699 // Helper function to handle url update notifications.
700 static void UpdateTargetURLHelper(TabContents* tab, int32 page_id,
701 const GURL& url);
702
695 // Calls ExecuteCommandWithDisposition with the given disposition. 703 // Calls ExecuteCommandWithDisposition with the given disposition.
696 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition); 704 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition);
697 705
698 // Executes a command if it's enabled. 706 // Executes a command if it's enabled.
699 // Returns true if the command is executed. 707 // Returns true if the command is executed.
700 bool ExecuteCommandIfEnabled(int id); 708 bool ExecuteCommandIfEnabled(int id);
701 709
702 // Returns true if |command_id| is a reserved command whose keyboard shortcuts 710 // Returns true if |command_id| is a reserved command whose keyboard shortcuts
703 // should not be sent to the renderer or |event| was triggered by a key that 711 // should not be sent to the renderer or |event| was triggered by a key that
704 // we never want to send to the renderer. 712 // we never want to send to the renderer.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 const gfx::Rect& initial_pos, 901 const gfx::Rect& initial_pos,
894 bool user_gesture) OVERRIDE; 902 bool user_gesture) OVERRIDE;
895 virtual void ActivateContents(TabContents* contents) OVERRIDE; 903 virtual void ActivateContents(TabContents* contents) OVERRIDE;
896 virtual void DeactivateContents(TabContents* contents) OVERRIDE; 904 virtual void DeactivateContents(TabContents* contents) OVERRIDE;
897 virtual void LoadingStateChanged(TabContents* source) OVERRIDE; 905 virtual void LoadingStateChanged(TabContents* source) OVERRIDE;
898 virtual void CloseContents(TabContents* source) OVERRIDE; 906 virtual void CloseContents(TabContents* source) OVERRIDE;
899 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) OVERRIDE; 907 virtual void MoveContents(TabContents* source, const gfx::Rect& pos) OVERRIDE;
900 virtual void DetachContents(TabContents* source) OVERRIDE; 908 virtual void DetachContents(TabContents* source) OVERRIDE;
901 virtual bool IsPopupOrPanel(const TabContents* source) const OVERRIDE; 909 virtual bool IsPopupOrPanel(const TabContents* source) const OVERRIDE;
902 virtual bool CanReloadContents(TabContents* source) const; 910 virtual bool CanReloadContents(TabContents* source) const;
903 virtual void UpdateTargetURL(TabContents* source, const GURL& url) OVERRIDE; 911 virtual void UpdateTargetURL(TabContents* source, int32 page_id,
912 const GURL& url) OVERRIDE;
904 virtual void ContentsMouseEvent( 913 virtual void ContentsMouseEvent(
905 TabContents* source, const gfx::Point& location, bool motion) OVERRIDE; 914 TabContents* source, const gfx::Point& location, bool motion) OVERRIDE;
906 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; 915 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE;
907 virtual void SetTabContentBlocked(TabContents* contents, 916 virtual void SetTabContentBlocked(TabContents* contents,
908 bool blocked) OVERRIDE; 917 bool blocked) OVERRIDE;
909 virtual void TabContentsFocused(TabContents* tab_content) OVERRIDE; 918 virtual void TabContentsFocused(TabContents* tab_content) OVERRIDE;
910 virtual bool TakeFocus(bool reverse) OVERRIDE; 919 virtual bool TakeFocus(bool reverse) OVERRIDE;
911 virtual bool IsApplication() const OVERRIDE; 920 virtual bool IsApplication() const OVERRIDE;
912 virtual void ConvertContentsToApplication(TabContents* source) OVERRIDE; 921 virtual void ConvertContentsToApplication(TabContents* source) OVERRIDE;
913 virtual void BeforeUnloadFired(TabContents* source, 922 virtual void BeforeUnloadFired(TabContents* source,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 const string16& data, 977 const string16& data,
969 int intent_id) OVERRIDE; 978 int intent_id) OVERRIDE;
970 979
971 virtual void FindReply(TabContents* tab, 980 virtual void FindReply(TabContents* tab,
972 int request_id, 981 int request_id,
973 int number_of_matches, 982 int number_of_matches,
974 const gfx::Rect& selection_rect, 983 const gfx::Rect& selection_rect,
975 int active_match_ordinal, 984 int active_match_ordinal,
976 bool final_update) OVERRIDE; 985 bool final_update) OVERRIDE;
977 986
987 virtual void CrashedPlugin(TabContents* tab,
988 const FilePath& plugin_path) OVERRIDE;
989
978 // Overridden from TabContentsWrapperDelegate: 990 // Overridden from TabContentsWrapperDelegate:
979 virtual void OnDidGetApplicationInfo(TabContentsWrapper* source, 991 virtual void OnDidGetApplicationInfo(TabContentsWrapper* source,
980 int32 page_id) OVERRIDE; 992 int32 page_id) OVERRIDE;
981 virtual void OnInstallApplication( 993 virtual void OnInstallApplication(
982 TabContentsWrapper* source, 994 TabContentsWrapper* source,
983 const WebApplicationInfo& app_info) OVERRIDE; 995 const WebApplicationInfo& app_info) OVERRIDE;
984 996
985 // Note that the caller is responsible for deleting |old_tab_contents|. 997 // Note that the caller is responsible for deleting |old_tab_contents|.
986 virtual void SwapTabContents(TabContentsWrapper* old_tab_contents, 998 virtual void SwapTabContents(TabContentsWrapper* old_tab_contents,
987 TabContentsWrapper* new_tab_contents); 999 TabContentsWrapper* new_tab_contents);
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 // Tab to notify when the browser exits fullscreen mode. 1417 // Tab to notify when the browser exits fullscreen mode.
1406 TabContentsWrapper* fullscreened_tab_; 1418 TabContentsWrapper* fullscreened_tab_;
1407 1419
1408 // True if the current tab is in fullscreen mode. 1420 // True if the current tab is in fullscreen mode.
1409 bool tab_caused_fullscreen_; 1421 bool tab_caused_fullscreen_;
1410 1422
1411 DISALLOW_COPY_AND_ASSIGN(Browser); 1423 DISALLOW_COPY_AND_ASSIGN(Browser);
1412 }; 1424 };
1413 1425
1414 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1426 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698