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

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

Issue 8911011: Remove obsolete TOUCH_UI define in jankometer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « no previous file | no next file » | 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) 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 <limits> 5 #include <limits>
6 6
7 #include "chrome/browser/jankometer.h" 7 #include "chrome/browser/jankometer.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 base::TimeDelta queueing_time = 324 base::TimeDelta queueing_time =
325 base::TimeDelta::FromMilliseconds(cur_time - cur_message_issue_time); 325 base::TimeDelta::FromMilliseconds(cur_time - cur_message_issue_time);
326 326
327 helper_.StartProcessingTimers(queueing_time); 327 helper_.StartProcessingTimers(queueing_time);
328 return base::EVENT_CONTINUE; 328 return base::EVENT_CONTINUE;
329 } 329 }
330 330
331 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE { 331 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE {
332 helper_.EndProcessingTimers(); 332 helper_.EndProcessingTimers();
333 } 333 }
334 #elif defined(TOUCH_UI) || defined(USE_AURA) 334 #elif defined(USE_AURA)
335 virtual base::EventStatus WillProcessEvent( 335 virtual base::EventStatus WillProcessEvent(
336 const base::NativeEvent& event) OVERRIDE { 336 const base::NativeEvent& event) OVERRIDE {
337 return base::EVENT_CONTINUE; 337 return base::EVENT_CONTINUE;
338 } 338 }
339 339
340 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE { 340 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE {
341 } 341 }
342 #elif defined(TOOLKIT_USES_GTK) 342 #elif defined(TOOLKIT_USES_GTK)
343 virtual void WillProcessEvent(GdkEvent* event) { 343 virtual void WillProcessEvent(GdkEvent* event) {
344 if (!helper_.MessageWillBeMeasured()) 344 if (!helper_.MessageWillBeMeasured())
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 delete ui_observer; 419 delete ui_observer;
420 ui_observer = NULL; 420 ui_observer = NULL;
421 } 421 }
422 if (io_observer) { 422 if (io_observer) {
423 // IO thread can't be running when we remove observers. 423 // IO thread can't be running when we remove observers.
424 DCHECK((!g_browser_process) || !(g_browser_process->io_thread())); 424 DCHECK((!g_browser_process) || !(g_browser_process->io_thread()));
425 delete io_observer; 425 delete io_observer;
426 io_observer = NULL; 426 io_observer = NULL;
427 } 427 }
428 } 428 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698