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

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

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes Created 11 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 unified diff | Download patch
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 is_hidden_(false), 72 is_hidden_(false),
73 close_on_deactivate_(false), 73 close_on_deactivate_(false),
74 tooltip_hwnd_(NULL), 74 tooltip_hwnd_(NULL),
75 tooltip_showing_(false), 75 tooltip_showing_(false),
76 shutdown_factory_(this), 76 shutdown_factory_(this),
77 parent_hwnd_(NULL), 77 parent_hwnd_(NULL),
78 is_loading_(false), 78 is_loading_(false),
79 activatable_(true) { 79 activatable_(true) {
80 render_widget_host_->set_view(this); 80 render_widget_host_->set_view(this);
81 renderer_accessible_ = 81 renderer_accessible_ =
82 CommandLine().HasSwitch(switches::kEnableRendererAccessibility); 82 CommandLine::ForCurrentProcess()->HasSwitch(
83 switches::kEnableRendererAccessibility);
83 } 84 }
84 85
85 RenderWidgetHostViewWin::~RenderWidgetHostViewWin() { 86 RenderWidgetHostViewWin::~RenderWidgetHostViewWin() {
86 ResetTooltip(); 87 ResetTooltip();
87 } 88 }
88 89
89 /////////////////////////////////////////////////////////////////////////////// 90 ///////////////////////////////////////////////////////////////////////////////
90 // RenderWidgetHostViewWin, RenderWidgetHostView implementation: 91 // RenderWidgetHostViewWin, RenderWidgetHostView implementation:
91 92
92 RenderWidgetHost* RenderWidgetHostViewWin::GetRenderWidgetHost() const { 93 RenderWidgetHost* RenderWidgetHostViewWin::GetRenderWidgetHost() const {
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 if (::IsWindow(tooltip_hwnd_)) 898 if (::IsWindow(tooltip_hwnd_))
898 ::DestroyWindow(tooltip_hwnd_); 899 ::DestroyWindow(tooltip_hwnd_);
899 tooltip_hwnd_ = NULL; 900 tooltip_hwnd_ = NULL;
900 } 901 }
901 902
902 void RenderWidgetHostViewWin::ShutdownHost() { 903 void RenderWidgetHostViewWin::ShutdownHost() {
903 shutdown_factory_.RevokeAll(); 904 shutdown_factory_.RevokeAll();
904 render_widget_host_->Shutdown(); 905 render_widget_host_->Shutdown();
905 // Do not touch any members at this point, |this| has been deleted. 906 // Do not touch any members at this point, |this| has been deleted.
906 } 907 }
OLDNEW
« no previous file with comments | « chrome/browser/render_view_host_manager.cc ('k') | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698