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

Unified Diff: chrome/browser/renderer_host/render_view_host.h

Issue 6020017: Mac: Enable "Check Spelling While Typing" in Edit menu... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/render_view_host.h
===================================================================
--- chrome/browser/renderer_host/render_view_host.h (revision 70404)
+++ chrome/browser/renderer_host/render_view_host.h (working copy)
@@ -201,6 +201,12 @@
// hangs, in which case we need to swap to the pending RenderViewHost.
int GetPendingRequestId();
+ struct CommandState {
+ bool is_enabled;
+ int checked_state;
+ };
+ CommandState GetStateForCommand(const std::string& command_name) const;
+
// Stops the current load.
void Stop();
@@ -724,6 +730,9 @@
void OnUpdateContentRestrictions(int restrictions);
void OnPagesReadyForPreview(
const ViewHostMsg_DidPreviewDocument_Params& params);
+ void OnCommandStateChanged(std::string command_name,
+ bool is_enabled,
+ int checked_state);
#if defined(OS_MACOSX)
void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params);
@@ -821,6 +830,9 @@
// The termination status of the last render view that terminated.
base::TerminationStatus render_view_termination_status_;
+ // The enabled/disabled states of various commands.
+ std::map<std::string, CommandState> command_states_;
+
DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
};
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host.cc » ('j') | chrome/browser/renderer_host/render_view_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698