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

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

Issue 10383239: Move NativeWebKeyboardEvent to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 7 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/printing/print_preview_tab_controller.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) 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 void ExecuteCommand(int id, int event_flags); 721 void ExecuteCommand(int id, int event_flags);
722 722
723 // Executes a command if it's enabled. 723 // Executes a command if it's enabled.
724 // Returns true if the command is executed. 724 // Returns true if the command is executed.
725 bool ExecuteCommandIfEnabled(int id); 725 bool ExecuteCommandIfEnabled(int id);
726 726
727 // Returns true if |command_id| is a reserved command whose keyboard shortcuts 727 // Returns true if |command_id| is a reserved command whose keyboard shortcuts
728 // should not be sent to the renderer or |event| was triggered by a key that 728 // should not be sent to the renderer or |event| was triggered by a key that
729 // we never want to send to the renderer. 729 // we never want to send to the renderer.
730 bool IsReservedCommandOrKey(int command_id, 730 bool IsReservedCommandOrKey(int command_id,
731 const NativeWebKeyboardEvent& event); 731 const content::NativeWebKeyboardEvent& event);
732 732
733 // Sets if command execution shall be blocked. If |block| is true then 733 // Sets if command execution shall be blocked. If |block| is true then
734 // following calls to ExecuteCommand() or ExecuteCommandWithDisposition() 734 // following calls to ExecuteCommand() or ExecuteCommandWithDisposition()
735 // method will not execute the command, and the last blocked command will be 735 // method will not execute the command, and the last blocked command will be
736 // recorded for retrieval. 736 // recorded for retrieval.
737 void SetBlockCommandExecution(bool block); 737 void SetBlockCommandExecution(bool block);
738 738
739 // Gets the last blocked command after calling SetBlockCommandExecution(true). 739 // Gets the last blocked command after calling SetBlockCommandExecution(true).
740 // Returns the command id or -1 if there is no command blocked. The 740 // Returns the command id or -1 if there is no command blocked. The
741 // disposition type of the command will be stored in |*disposition| if it's 741 // disposition type of the command will be stored in |*disposition| if it's
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 virtual void RenderWidgetShowing() OVERRIDE; 956 virtual void RenderWidgetShowing() OVERRIDE;
957 virtual int GetExtraRenderViewHeight() const OVERRIDE; 957 virtual int GetExtraRenderViewHeight() const OVERRIDE;
958 virtual void OnStartDownload(content::WebContents* source, 958 virtual void OnStartDownload(content::WebContents* source,
959 content::DownloadItem* download) OVERRIDE; 959 content::DownloadItem* download) OVERRIDE;
960 virtual void ViewSourceForTab(content::WebContents* source, 960 virtual void ViewSourceForTab(content::WebContents* source,
961 const GURL& page_url) OVERRIDE; 961 const GURL& page_url) OVERRIDE;
962 virtual void ViewSourceForFrame( 962 virtual void ViewSourceForFrame(
963 content::WebContents* source, 963 content::WebContents* source,
964 const GURL& frame_url, 964 const GURL& frame_url,
965 const std::string& frame_content_state) OVERRIDE; 965 const std::string& frame_content_state) OVERRIDE;
966 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 966 virtual bool PreHandleKeyboardEvent(
967 bool* is_keyboard_shortcut) OVERRIDE; 967 const content::NativeWebKeyboardEvent& event,
968 bool* is_keyboard_shortcut) OVERRIDE;
968 virtual void HandleKeyboardEvent( 969 virtual void HandleKeyboardEvent(
969 const NativeWebKeyboardEvent& event) OVERRIDE; 970 const content::NativeWebKeyboardEvent& event) OVERRIDE;
970 virtual void ShowRepostFormWarningDialog( 971 virtual void ShowRepostFormWarningDialog(
971 content::WebContents* source) OVERRIDE; 972 content::WebContents* source) OVERRIDE;
972 virtual bool ShouldAddNavigationToHistory( 973 virtual bool ShouldAddNavigationToHistory(
973 const history::HistoryAddPageArgs& add_page_args, 974 const history::HistoryAddPageArgs& add_page_args,
974 content::NavigationType navigation_type) OVERRIDE; 975 content::NavigationType navigation_type) OVERRIDE;
975 virtual bool ShouldCreateWebContents( 976 virtual bool ShouldCreateWebContents(
976 content::WebContents* web_contents, 977 content::WebContents* web_contents,
977 int route_id, 978 int route_id,
978 WindowContainerType window_container_type, 979 WindowContainerType window_container_type,
979 const string16& frame_name, 980 const string16& frame_name,
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 bool window_has_shown_; 1460 bool window_has_shown_;
1460 1461
1461 // Currently open color chooser. Non-NULL after OpenColorChooser is called and 1462 // Currently open color chooser. Non-NULL after OpenColorChooser is called and
1462 // before DidEndColorChooser is called. 1463 // before DidEndColorChooser is called.
1463 scoped_ptr<content::ColorChooser> color_chooser_; 1464 scoped_ptr<content::ColorChooser> color_chooser_;
1464 1465
1465 DISALLOW_COPY_AND_ASSIGN(Browser); 1466 DISALLOW_COPY_AND_ASSIGN(Browser);
1466 }; 1467 };
1467 1468
1468 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1469 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_tab_controller.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698