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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_mac.h

Issue 378038: Add a RWH_TabSwitchPaintDuration histogram. (Closed)
Patch Set: remove tab switching test changes Created 11 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
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 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/scoped_nsobject.h" 10 #include "base/scoped_nsobject.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 bool about_to_validate_and_paint_; 133 bool about_to_validate_and_paint_;
134 134
135 // This is the rectangle which we'll paint. 135 // This is the rectangle which we'll paint.
136 NSRect invalid_rect_; 136 NSRect invalid_rect_;
137 137
138 // The time at which this view started displaying white pixels as a result of 138 // The time at which this view started displaying white pixels as a result of
139 // not having anything to paint (empty backing store from renderer). This 139 // not having anything to paint (empty backing store from renderer). This
140 // value returns true for is_null() if we are not recording whiteout times. 140 // value returns true for is_null() if we are not recording whiteout times.
141 base::TimeTicks whiteout_start_time_; 141 base::TimeTicks whiteout_start_time_;
142 142
143 // The time it took after this view was selected for it to be fully painted.
144 base::TimeTicks tab_switch_paint_time_;
145
143 // Variables used by our implementaion of the NSTextInput protocol. 146 // Variables used by our implementaion of the NSTextInput protocol.
144 // An input method of Mac calls the methods of this protocol not only to 147 // An input method of Mac calls the methods of this protocol not only to
145 // notify an application of its status, but also to retrieve the status of 148 // notify an application of its status, but also to retrieve the status of
146 // the application. That is, an application cannot control an input method 149 // the application. That is, an application cannot control an input method
147 // directly. 150 // directly.
148 // This object keeps the status of a composition of the renderer and returns 151 // This object keeps the status of a composition of the renderer and returns
149 // it when an input method asks for it. 152 // it when an input method asks for it.
150 // We need to implement Objective-C methods for the NSTextInput protocol. On 153 // We need to implement Objective-C methods for the NSTextInput protocol. On
151 // the other hand, we need to implement a C++ method for an IPC-message 154 // the other hand, we need to implement a C++ method for an IPC-message
152 // handler which receives input-method events from the renderer. 155 // handler which receives input-method events from the renderer.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Factory used to safely scope delayed calls to ShutdownHost(). 213 // Factory used to safely scope delayed calls to ShutdownHost().
211 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; 214 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_;
212 215
213 // Used for positioning a popup menu. 216 // Used for positioning a popup menu.
214 BaseView* parent_view_; 217 BaseView* parent_view_;
215 218
216 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 219 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
217 }; 220 };
218 221
219 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 222 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698