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

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

Issue 165293: Supports Gtk keyboard themes.... (Closed) Base URL: svn://svn.chromium.org/chrome/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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 StartHangMonitorTimeout(TimeDelta::FromMilliseconds(kHungRendererDelayMs)); 429 StartHangMonitorTimeout(TimeDelta::FromMilliseconds(kHungRendererDelayMs));
430 } 430 }
431 431
432 void RenderWidgetHost::ForwardEditCommand(const std::string& name, 432 void RenderWidgetHost::ForwardEditCommand(const std::string& name,
433 const std::string& value) { 433 const std::string& value) {
434 // We don't need an implementation of this function here since the 434 // We don't need an implementation of this function here since the
435 // only place we use this is for the case of dropdown menus and other 435 // only place we use this is for the case of dropdown menus and other
436 // edge cases for which edit commands don't make sense. 436 // edge cases for which edit commands don't make sense.
437 } 437 }
438 438
439 void RenderWidgetHost::ForwardEditCommandsForNextKeyEvent(
440 const EditCommands& edit_commands) {
441 // We don't need an implementation of this function here since this message is
442 // only handled by RenderView.
443 }
444
439 void RenderWidgetHost::RendererExited() { 445 void RenderWidgetHost::RendererExited() {
440 // Clearing this flag causes us to re-create the renderer when recovering 446 // Clearing this flag causes us to re-create the renderer when recovering
441 // from a crashed renderer. 447 // from a crashed renderer.
442 renderer_initialized_ = false; 448 renderer_initialized_ = false;
443 449
444 // Must reset these to ensure that mouse move events work with a new renderer. 450 // Must reset these to ensure that mouse move events work with a new renderer.
445 mouse_move_pending_ = false; 451 mouse_move_pending_ = false;
446 next_mouse_move_.reset(); 452 next_mouse_move_.reset();
447 453
448 // Reset some fields in preparation for recovering from a crash. 454 // Reset some fields in preparation for recovering from a crash.
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 876
871 // TODO(darin): do we need to do something else if our backing store is not 877 // 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 878 // the same size as the advertised view? maybe we just assume there is a
873 // full paint on its way? 879 // full paint on its way?
874 BackingStore* backing_store = BackingStoreManager::Lookup(this); 880 BackingStore* backing_store = BackingStoreManager::Lookup(this);
875 if (!backing_store || (backing_store->size() != view_size)) 881 if (!backing_store || (backing_store->size() != view_size))
876 return; 882 return;
877 backing_store->ScrollRect(process_->process().handle(), bitmap, bitmap_rect, 883 backing_store->ScrollRect(process_->process().handle(), bitmap, bitmap_rect,
878 dx, dy, clip_rect, view_size); 884 dx, dy, clip_rect, view_size);
879 } 885 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.h ('k') | chrome/browser/renderer_host/render_widget_host_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698