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

Side by Side Diff: ash/shelf/shelf_layout_manager.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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
« no previous file with comments | « ash/metrics/user_metrics_recorder.h ('k') | ash/shelf/shelf_tooltip_manager.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // Current state. 358 // Current state.
359 State state_; 359 State state_;
360 360
361 ShelfWidget* shelf_; 361 ShelfWidget* shelf_;
362 362
363 WorkspaceController* workspace_controller_; 363 WorkspaceController* workspace_controller_;
364 364
365 // Do any windows overlap the shelf? This is maintained by WorkspaceManager. 365 // Do any windows overlap the shelf? This is maintained by WorkspaceManager.
366 bool window_overlaps_shelf_; 366 bool window_overlaps_shelf_;
367 367
368 base::OneShotTimer<ShelfLayoutManager> auto_hide_timer_; 368 base::OneShotTimer auto_hide_timer_;
369 369
370 // Whether the mouse was over the shelf when the auto hide timer started. 370 // Whether the mouse was over the shelf when the auto hide timer started.
371 // False when neither the auto hide timer nor the timer task are running. 371 // False when neither the auto hide timer nor the timer task are running.
372 bool mouse_over_shelf_when_auto_hide_timer_started_; 372 bool mouse_over_shelf_when_auto_hide_timer_started_;
373 373
374 // EventFilter used to detect when user moves the mouse over the shelf to 374 // EventFilter used to detect when user moves the mouse over the shelf to
375 // trigger showing the shelf. 375 // trigger showing the shelf.
376 scoped_ptr<AutoHideEventFilter> auto_hide_event_filter_; 376 scoped_ptr<AutoHideEventFilter> auto_hide_event_filter_;
377 377
378 // EventFilter used to detect when user issues a gesture on a bezel sensor. 378 // EventFilter used to detect when user issues a gesture on a bezel sensor.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 414
415 // The show hide animation duration override or 0 for default. 415 // The show hide animation duration override or 0 for default.
416 int duration_override_in_ms_; 416 int duration_override_in_ms_;
417 417
418 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 418 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
419 }; 419 };
420 420
421 } // namespace ash 421 } // namespace ash
422 422
423 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 423 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/metrics/user_metrics_recorder.h ('k') | ash/shelf/shelf_tooltip_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698