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

Side by Side Diff: chrome/browser/render_widget_host_view_win.cc

Issue 8885: Implementation of the UI part of the autofill (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « chrome/browser/render_widget_host_view_win.h ('k') | chrome/browser/resource_message_filter.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/render_widget_host_view_win.h" 5 #include "chrome/browser/render_widget_host_view_win.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/gfx/gdi_util.h" 8 #include "base/gfx/gdi_util.h"
9 #include "base/gfx/rect.h" 9 #include "base/gfx/rect.h"
10 #include "base/histogram.h" 10 #include "base/histogram.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // static 59 // static
60 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( 60 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget(
61 RenderWidgetHost* widget) { 61 RenderWidgetHost* widget) {
62 return new RenderWidgetHostViewWin(widget); 62 return new RenderWidgetHostViewWin(widget);
63 } 63 }
64 64
65 /////////////////////////////////////////////////////////////////////////////// 65 ///////////////////////////////////////////////////////////////////////////////
66 // RenderWidgetHostViewWin, public: 66 // RenderWidgetHostViewWin, public:
67 67
68 RenderWidgetHostViewWin::RenderWidgetHostViewWin( 68 RenderWidgetHostViewWin::RenderWidgetHostViewWin(RenderWidgetHost* widget)
69 RenderWidgetHost* widget) 69 : render_widget_host_(widget),
70 : RenderWidgetHostView(),
71 render_widget_host_(widget),
72 real_cursor_(LoadCursor(NULL, IDC_ARROW)), 70 real_cursor_(LoadCursor(NULL, IDC_ARROW)),
73 real_cursor_type_(WebCursor::ARROW), 71 real_cursor_type_(WebCursor::ARROW),
74 track_mouse_leave_(false), 72 track_mouse_leave_(false),
75 ime_notification_(false), 73 ime_notification_(false),
76 is_hidden_(false), 74 is_hidden_(false),
77 close_on_deactivate_(false), 75 close_on_deactivate_(false),
78 tooltip_hwnd_(NULL), 76 tooltip_hwnd_(NULL),
79 tooltip_showing_(false), 77 tooltip_showing_(false),
80 shutdown_factory_(this), 78 shutdown_factory_(this),
81 parent_hwnd_(NULL), 79 parent_hwnd_(NULL),
82 is_loading_(false) { 80 is_loading_(false),
81 focus_on_show_(true) {
83 render_widget_host_->set_view(this); 82 render_widget_host_->set_view(this);
84 renderer_accessible_ = 83 renderer_accessible_ =
85 CommandLine().HasSwitch(switches::kEnableRendererAccessibility); 84 CommandLine().HasSwitch(switches::kEnableRendererAccessibility);
86 } 85 }
87 86
88 RenderWidgetHostViewWin::~RenderWidgetHostViewWin() { 87 RenderWidgetHostViewWin::~RenderWidgetHostViewWin() {
89 if (real_cursor_type_ == WebCursor::CUSTOM) 88 if (real_cursor_type_ == WebCursor::CUSTOM)
90 DestroyIcon(real_cursor_); 89 DestroyIcon(real_cursor_);
91 ResetTooltip(); 90 ResetTooltip();
92 } 91 }
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 ::DestroyWindow(tooltip_hwnd_); 908 ::DestroyWindow(tooltip_hwnd_);
910 tooltip_hwnd_ = NULL; 909 tooltip_hwnd_ = NULL;
911 } 910 }
912 911
913 void RenderWidgetHostViewWin::ShutdownHost() { 912 void RenderWidgetHostViewWin::ShutdownHost() {
914 shutdown_factory_.RevokeAll(); 913 shutdown_factory_.RevokeAll();
915 render_widget_host_->Shutdown(); 914 render_widget_host_->Shutdown();
916 // Do not touch any members at this point, |this| has been deleted. 915 // Do not touch any members at this point, |this| has been deleted.
917 } 916 }
918 917
OLDNEW
« no previous file with comments | « chrome/browser/render_widget_host_view_win.h ('k') | chrome/browser/resource_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698