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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 8477042: Move Sad Tab implementation out of the TabContentsViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes for jochen and jam Created 9 years, 1 month 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 #include "content/browser/renderer_host/render_widget_host_view_win.h" 5 #include "content/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 ScrollWindowEx(scroll_dx, scroll_dy, NULL, &clip_rect, NULL, NULL, 786 ScrollWindowEx(scroll_dx, scroll_dy, NULL, &clip_rect, NULL, NULL,
787 SW_INVALIDATE); 787 SW_INVALIDATE);
788 } 788 }
789 789
790 if (!about_to_validate_and_paint_) 790 if (!about_to_validate_and_paint_)
791 Redraw(); 791 Redraw();
792 } 792 }
793 793
794 void RenderWidgetHostViewWin::RenderViewGone(base::TerminationStatus status, 794 void RenderWidgetHostViewWin::RenderViewGone(base::TerminationStatus status,
795 int error_code) { 795 int error_code) {
796 // TODO(darin): keep this around, and draw sad-tab into it.
797 UpdateCursorIfOverSelf(); 796 UpdateCursorIfOverSelf();
798 Destroy(); 797 Destroy();
799 } 798 }
800 799
801 void RenderWidgetHostViewWin::WillWmDestroy() { 800 void RenderWidgetHostViewWin::WillWmDestroy() {
802 CleanupCompositorWindow(); 801 CleanupCompositorWindow();
803 } 802 }
804 803
805 void RenderWidgetHostViewWin::Destroy() { 804 void RenderWidgetHostViewWin::Destroy() {
806 // We've been told to destroy. 805 // We've been told to destroy.
(...skipping 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after
2430 2429
2431 size_t offset = selection_range_.GetMin() - selection_text_offset_; 2430 size_t offset = selection_range_.GetMin() - selection_text_offset_;
2432 memcpy(reinterpret_cast<char*>(reconv) + sizeof(RECONVERTSTRING), 2431 memcpy(reinterpret_cast<char*>(reconv) + sizeof(RECONVERTSTRING),
2433 selection_text_.c_str() + offset, len * sizeof(WCHAR)); 2432 selection_text_.c_str() + offset, len * sizeof(WCHAR));
2434 2433
2435 // According to Microsft API document, IMR_RECONVERTSTRING and 2434 // According to Microsft API document, IMR_RECONVERTSTRING and
2436 // IMR_DOCUMENTFEED should return reconv, but some applications return 2435 // IMR_DOCUMENTFEED should return reconv, but some applications return
2437 // need_size. 2436 // need_size.
2438 return reinterpret_cast<LRESULT>(reconv); 2437 return reinterpret_cast<LRESULT>(reconv);
2439 } 2438 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698