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

Side by Side Diff: ash/shelf/shelf_tooltip_manager.cc

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ash/shelf/shelf_tooltip_manager.h" 5 #include "ash/shelf/shelf_tooltip_manager.h"
6 6
7 #include "ash/shelf/shelf_layout_manager.h" 7 #include "ash/shelf/shelf_layout_manager.h"
8 #include "ash/shelf/shelf_view.h" 8 #include "ash/shelf/shelf_view.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_window_ids.h" 10 #include "ash/shell_window_ids.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 ShelfTooltipManager* host); 53 ShelfTooltipManager* host);
54 54
55 void SetText(const base::string16& text); 55 void SetText(const base::string16& text);
56 void Close(); 56 void Close();
57 57
58 private: 58 private:
59 // views::WidgetDelegate overrides: 59 // views::WidgetDelegate overrides:
60 virtual void WindowClosing() OVERRIDE; 60 virtual void WindowClosing() OVERRIDE;
61 61
62 // views::View overrides: 62 // views::View overrides:
63 virtual gfx::Size GetPreferredSize() OVERRIDE; 63 virtual gfx::Size GetPreferredSize() const OVERRIDE;
64 64
65 ShelfTooltipManager* host_; 65 ShelfTooltipManager* host_;
66 views::Label* label_; 66 views::Label* label_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(ShelfTooltipBubble); 68 DISALLOW_COPY_AND_ASSIGN(ShelfTooltipBubble);
69 }; 69 };
70 70
71 ShelfTooltipManager::ShelfTooltipBubble::ShelfTooltipBubble( 71 ShelfTooltipManager::ShelfTooltipBubble::ShelfTooltipBubble(
72 views::View* anchor, 72 views::View* anchor,
73 views::BubbleBorder::Arrow arrow, 73 views::BubbleBorder::Arrow arrow,
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 base::OneShotTimer<ShelfTooltipManager>* new_timer = 366 base::OneShotTimer<ShelfTooltipManager>* new_timer =
367 new base::OneShotTimer<ShelfTooltipManager>(); 367 new base::OneShotTimer<ShelfTooltipManager>();
368 new_timer->Start(FROM_HERE, 368 new_timer->Start(FROM_HERE,
369 base::TimeDelta::FromMilliseconds(delay_in_ms), 369 base::TimeDelta::FromMilliseconds(delay_in_ms),
370 this, 370 this,
371 &ShelfTooltipManager::ShowInternal); 371 &ShelfTooltipManager::ShowInternal);
372 timer_.reset(new_timer); 372 timer_.reset(new_timer);
373 } 373 }
374 374
375 } // namespace ash 375 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698