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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host.cc

Issue 160565: Adds support for the os x spelling panel to chromium. Users can... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "chrome/browser/renderer_host/render_widget_host.h" 5 #include "chrome/browser/renderer_host/render_widget_host.h"
6 6
7 #include "base/histogram.h" 7 #include "base/histogram.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/keyboard_codes.h" 9 #include "base/keyboard_codes.h"
10 #include "chrome/browser/renderer_host/backing_store.h" 10 #include "chrome/browser/renderer_host/backing_store.h"
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 870
871 // TODO(darin): do we need to do something else if our backing store is not 871 // TODO(darin): do we need to do something else if our backing store is not
872 // the same size as the advertised view? maybe we just assume there is a 872 // the same size as the advertised view? maybe we just assume there is a
873 // full paint on its way? 873 // full paint on its way?
874 BackingStore* backing_store = BackingStoreManager::Lookup(this); 874 BackingStore* backing_store = BackingStoreManager::Lookup(this);
875 if (!backing_store || (backing_store->size() != view_size)) 875 if (!backing_store || (backing_store->size() != view_size))
876 return; 876 return;
877 backing_store->ScrollRect(process_->process().handle(), bitmap, bitmap_rect, 877 backing_store->ScrollRect(process_->process().handle(), bitmap, bitmap_rect,
878 dx, dy, clip_rect, view_size); 878 dx, dy, clip_rect, view_size);
879 } 879 }
880
881 void RenderWidgetHost::ToggleSpellPanel(bool is_currently_visible) {
882 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible));
883 }
884
885 void RenderWidgetHost::ReplaceWord(const std::wstring& word) {
886 Send(new ViewMsg_Replace(routing_id_, word));
887 }
888
889 void RenderWidgetHost::AdvanceToNextMisspelling() {
890 Send(new ViewMsg_AdvanceToNextMisspelling(routing_id_));
891 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.h ('k') | chrome/browser/renderer_host/render_widget_host_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698