diff options
Diffstat (limited to 'chrome/browser/ui')
16 files changed, 29 insertions, 24 deletions
diff --git a/chrome/browser/ui/fullscreen_exit_bubble.cc b/chrome/browser/ui/fullscreen_exit_bubble.cc index 8c42fa1..be3db4e 100644 --- a/chrome/browser/ui/fullscreen_exit_bubble.cc +++ b/chrome/browser/ui/fullscreen_exit_bubble.cc @@ -26,11 +26,12 @@ FullscreenExitBubble::~FullscreenExitBubble() { void FullscreenExitBubble::StartWatchingMouse() { // Start the initial delay timer and begin watching the mouse. - initial_delay_.Start(base::TimeDelta::FromMilliseconds(kInitialDelayMs), this, + initial_delay_.Start(FROM_HERE, + base::TimeDelta::FromMilliseconds(kInitialDelayMs), this, &FullscreenExitBubble::CheckMousePosition); gfx::Point cursor_pos = GetCursorScreenPoint(); last_mouse_pos_ = cursor_pos; - mouse_position_checker_.Start( + mouse_position_checker_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(1000 / kPositionCheckHz), this, &FullscreenExitBubble::CheckMousePosition); } @@ -62,7 +63,8 @@ void FullscreenExitBubble::CheckMousePosition() { if (cursor_pos != last_mouse_pos_) { // The mouse moved; reset the idle timer. idle_timeout_.Stop(); // If the timer isn't running, this is a no-op. - idle_timeout_.Start(base::TimeDelta::FromMilliseconds(kIdleTimeMs), this, + idle_timeout_.Start(FROM_HERE, + base::TimeDelta::FromMilliseconds(kIdleTimeMs), this, &FullscreenExitBubble::CheckMousePosition); } last_mouse_pos_ = cursor_pos; diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc index 4c52e9f..94f6066 100644 --- a/chrome/browser/ui/gtk/browser_window_gtk.cc +++ b/chrome/browser/ui/gtk/browser_window_gtk.cc @@ -792,7 +792,7 @@ void BrowserWindowGtk::UpdateLoadingAnimations(bool should_animate) { if (should_animate) { if (!loading_animation_timer_.IsRunning()) { // Loads are happening, and the timer isn't running, so start it. - loading_animation_timer_.Start( + loading_animation_timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(kLoadingAnimationFrameTimeMs), this, &BrowserWindowGtk::LoadingAnimationCallback); } @@ -1419,8 +1419,8 @@ gboolean BrowserWindowGtk::OnConfigure(GtkWidget* widget, // (In that case Stop() is a no-op.) if (!debounce_timer_disabled_) { window_configure_debounce_timer_.Stop(); - window_configure_debounce_timer_.Start(base::TimeDelta::FromMilliseconds( - kDebounceTimeoutMilliseconds), this, + window_configure_debounce_timer_.Start(FROM_HERE, + base::TimeDelta::FromMilliseconds(kDebounceTimeoutMilliseconds), this, &BrowserWindowGtk::OnDebouncedBoundsChanged); } diff --git a/chrome/browser/ui/gtk/download/download_item_gtk.cc b/chrome/browser/ui/gtk/download/download_item_gtk.cc index 5766738..5f9218e 100644 --- a/chrome/browser/ui/gtk/download/download_item_gtk.cc +++ b/chrome/browser/ui/gtk/download/download_item_gtk.cc @@ -424,7 +424,7 @@ void DownloadItemGtk::UpdateDownloadProgress() { void DownloadItemGtk::StartDownloadProgress() { if (progress_timer_.IsRunning()) return; - progress_timer_.Start( + progress_timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(download_util::kProgressRateMs), this, &DownloadItemGtk::UpdateDownloadProgress); } diff --git a/chrome/browser/ui/gtk/reload_button_gtk.cc b/chrome/browser/ui/gtk/reload_button_gtk.cc index d6e2501..b945934 100644 --- a/chrome/browser/ui/gtk/reload_button_gtk.cc +++ b/chrome/browser/ui/gtk/reload_button_gtk.cc @@ -119,7 +119,7 @@ void ReloadButtonGtk::ChangeMode(Mode mode, bool force) { // Go ahead and change to reload after a bit, which allows repeated reloads // without moving the mouse. if (!stop_to_reload_timer_.IsRunning()) { - stop_to_reload_timer_.Start(stop_to_reload_timer_delay_, this, + stop_to_reload_timer_.Start(FROM_HERE, stop_to_reload_timer_delay_, this, &ReloadButtonGtk::OnStopToReloadTimer); } } @@ -185,7 +185,7 @@ void ReloadButtonGtk::OnClicked(GtkWidget* /* sender */) { // here as the browser will do that when it actually starts loading (which // may happen synchronously, thus the need to do this before telling the // browser to execute the reload command). - double_click_timer_.Start(double_click_timer_delay_, this, + double_click_timer_.Start(FROM_HERE, double_click_timer_delay_, this, &ReloadButtonGtk::OnDoubleClickTimer); if (browser_) diff --git a/chrome/browser/ui/gtk/status_bubble_gtk.cc b/chrome/browser/ui/gtk/status_bubble_gtk.cc index df31d84..6640a8b 100644 --- a/chrome/browser/ui/gtk/status_bubble_gtk.cc +++ b/chrome/browser/ui/gtk/status_bubble_gtk.cc @@ -99,7 +99,8 @@ void StatusBubbleGtk::SetStatusTextToURL() { int desired_width = parent->allocation.width; if (!expanded()) { expand_timer_.Stop(); - expand_timer_.Start(base::TimeDelta::FromMilliseconds(kExpandHoverDelay), + expand_timer_.Start(FROM_HERE, + base::TimeDelta::FromMilliseconds(kExpandHoverDelay), this, &StatusBubbleGtk::ExpandURL); // When not expanded, we limit the size to one third the browser's // width. @@ -133,7 +134,7 @@ void StatusBubbleGtk::Hide() { void StatusBubbleGtk::SetStatusTextTo(const std::string& status_utf8) { if (status_utf8.empty()) { hide_timer_.Stop(); - hide_timer_.Start(base::TimeDelta::FromMilliseconds(kHideDelay), + hide_timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(kHideDelay), this, &StatusBubbleGtk::Hide); } else { gtk_label_set_text(GTK_LABEL(label_.get()), status_utf8.c_str()); diff --git a/chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc b/chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc index 73dd699..ac08691 100644 --- a/chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc +++ b/chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc @@ -245,7 +245,7 @@ void DraggedTabControllerGtk::ContinueDragging() { } if (!target_tabstrip) { - bring_to_front_timer_.Start( + bring_to_front_timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(kBringToFrontDelay), this, &DraggedTabControllerGtk::BringWindowUnderMouseToFront); } diff --git a/chrome/browser/ui/panels/auto_hiding_desktop_bar_win.cc b/chrome/browser/ui/panels/auto_hiding_desktop_bar_win.cc index 944c6b1..b10aadd 100644 --- a/chrome/browser/ui/panels/auto_hiding_desktop_bar_win.cc +++ b/chrome/browser/ui/panels/auto_hiding_desktop_bar_win.cc @@ -43,7 +43,7 @@ void AutoHidingDesktopBarWin::UpdateWorkArea(const gfx::Rect& work_area) { // called due to the work area change. if (taskbar_exists) { if (!polling_timer_.IsRunning()) { - polling_timer_.Start( + polling_timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(kCheckTaskbarPollingIntervalMs), this, &AutoHidingDesktopBarWin::OnPollingTimer); diff --git a/chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc b/chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc index 88e8194..216473d 100644 --- a/chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc +++ b/chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc @@ -478,7 +478,8 @@ void CompactLocationBarViewHost::StartAutoHideTimer() { // Restart the timer. auto_hide_timer_->Reset(); } else { - auto_hide_timer_->Start(base::TimeDelta::FromSeconds(kHideTimeoutInSeconds), + auto_hide_timer_->Start(FROM_HERE, + base::TimeDelta::FromSeconds(kHideTimeoutInSeconds), this, &CompactLocationBarViewHost::HideCallback); } } diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc index 836504a..58c42d3 100644 --- a/chrome/browser/ui/views/download/download_item_view.cc +++ b/chrome/browser/ui/views/download/download_item_view.cc @@ -315,7 +315,7 @@ void DownloadItemView::UpdateDownloadProgress() { void DownloadItemView::StartDownloadProgress() { if (progress_timer_.IsRunning()) return; - progress_timer_.Start( + progress_timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(download_util::kProgressRateMs), this, &DownloadItemView::UpdateDownloadProgress); } diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc index 4020129..7f586b6 100644 --- a/chrome/browser/ui/views/frame/browser_view.cc +++ b/chrome/browser/ui/views/frame/browser_view.cc @@ -759,7 +759,7 @@ void BrowserView::UpdateLoadingAnimations(bool should_animate) { if (!loading_animation_timer_.IsRunning()) { // Loads are happening, and the timer isn't running, so start it. last_animation_time_ = base::TimeTicks::Now(); - loading_animation_timer_.Start( + loading_animation_timer_.Start(FROM_HERE, TimeDelta::FromMilliseconds(kLoadingAnimationFrameTimeMs), this, &BrowserView::LoadingAnimationCallback); } diff --git a/chrome/browser/ui/views/reload_button.cc b/chrome/browser/ui/views/reload_button.cc index 0670d63..db95490 100644 --- a/chrome/browser/ui/views/reload_button.cc +++ b/chrome/browser/ui/views/reload_button.cc @@ -60,7 +60,7 @@ void ReloadButton::ChangeMode(Mode mode, bool force) { // Go ahead and change to reload after a bit, which allows repeated reloads // without moving the mouse. if (!stop_to_reload_timer_.IsRunning()) { - stop_to_reload_timer_.Start(stop_to_reload_timer_delay_, this, + stop_to_reload_timer_.Start(FROM_HERE, stop_to_reload_timer_delay_, this, &ReloadButton::OnStopToReloadTimer); } } @@ -106,7 +106,7 @@ void ReloadButton::ButtonPressed(views::Button* /* button */, // here as the browser will do that when it actually starts loading (which // may happen synchronously, thus the need to do this before telling the // browser to execute the reload command). - double_click_timer_.Start(double_click_timer_delay_, this, + double_click_timer_.Start(FROM_HERE, double_click_timer_delay_, this, &ReloadButton::OnDoubleClickTimer); if (browser_) diff --git a/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc b/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc index 0c2f2f3..ab91362 100644 --- a/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc +++ b/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc @@ -385,8 +385,8 @@ void TabContentsViewViews::OnNativeTabContentsViewMouseMove(bool motion) { void TabContentsViewViews::OnNativeTabContentsViewDraggingEnded() { if (close_tab_after_drag_ends_) { - close_tab_timer_.Start(base::TimeDelta::FromMilliseconds(0), this, - &TabContentsViewViews::CloseTab); + close_tab_timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(0), + this, &TabContentsViewViews::CloseTab); } tab_contents_->SystemDragEnded(); } diff --git a/chrome/browser/ui/views/tabs/dragged_tab_controller.cc b/chrome/browser/ui/views/tabs/dragged_tab_controller.cc index 685e0d5..eab3310 100644 --- a/chrome/browser/ui/views/tabs/dragged_tab_controller.cc +++ b/chrome/browser/ui/views/tabs/dragged_tab_controller.cc @@ -667,7 +667,7 @@ void DraggedTabController::ContinueDragging() { Attach(target_tabstrip, screen_point); } if (!target_tabstrip) { - bring_to_front_timer_.Start( + bring_to_front_timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(kBringToFrontDelay), this, &DraggedTabController::BringWindowUnderMouseToFront); } diff --git a/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc b/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc index ef94964..2f088a1 100644 --- a/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc +++ b/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc @@ -1127,6 +1127,7 @@ void MobileSetupHandler::ChangeState(chromeos::CellularNetwork* network, // limbo by the network library. if (!reconnect_timer_.IsRunning()) { reconnect_timer_.Start( + FROM_HERE, base::TimeDelta::FromMilliseconds(kReconnectTimerDelayMS), this, &MobileSetupHandler::ReconnectTimerFired); } diff --git a/chrome/browser/ui/webui/flash_ui.cc b/chrome/browser/ui/webui/flash_ui.cc index a973bfa..f69bc77 100644 --- a/chrome/browser/ui/webui/flash_ui.cc +++ b/chrome/browser/ui/webui/flash_ui.cc @@ -133,7 +133,7 @@ FlashDOMHandler::FlashDOMHandler() // And lastly, we fire off a timer to make sure we never get stuck at the // "Loading..." message. - timeout_.Start(base::TimeDelta::FromMilliseconds(kTimeout), + timeout_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(kTimeout), this, &FlashDOMHandler::OnTimeout); } diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.cc b/chrome/browser/ui/webui/ntp/new_tab_ui.cc index b0ce383..2ad0c41 100644 --- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc +++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc @@ -278,7 +278,7 @@ void NewTabUI::PaintTimeout() { // Not enough quiet time has elapsed. // Some more paints must've occurred since we set the timeout. // Wait some more. - timer_.Start(base::TimeDelta::FromMilliseconds(kTimeoutMs), this, + timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(kTimeoutMs), this, &NewTabUI::PaintTimeout); } } @@ -288,7 +288,7 @@ void NewTabUI::StartTimingPaint(RenderViewHost* render_view_host) { last_paint_ = start_; registrar_.Add(this, content::NOTIFICATION_RENDER_WIDGET_HOST_DID_PAINT, Source<RenderWidgetHost>(render_view_host)); - timer_.Start(base::TimeDelta::FromMilliseconds(kTimeoutMs), this, + timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(kTimeoutMs), this, &NewTabUI::PaintTimeout); } |