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

Side by Side Diff: chrome/browser/chromeos/status/status_area_view.h

Issue 8932001: Update widget size from StatusAreaView::Layout() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 | chrome/browser/chromeos/status/status_area_view.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 (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 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 10
(...skipping 24 matching lines...) Expand all
35 void TakeFocus(bool reverse, 35 void TakeFocus(bool reverse,
36 const ReturnFocusCallback& return_focus_cb); 36 const ReturnFocusCallback& return_focus_cb);
37 37
38 // Overridden from views::FocusChangeListener: 38 // Overridden from views::FocusChangeListener:
39 virtual void OnDidChangeFocus(views::View* focused_before, 39 virtual void OnDidChangeFocus(views::View* focused_before,
40 views::View* focused_now) OVERRIDE; 40 views::View* focused_now) OVERRIDE;
41 41
42 // views::View* overrides. 42 // views::View* overrides.
43 virtual gfx::Size GetPreferredSize() OVERRIDE; 43 virtual gfx::Size GetPreferredSize() OVERRIDE;
44 virtual void Layout() OVERRIDE; 44 virtual void Layout() OVERRIDE;
45 virtual void PreferredSizeChanged() OVERRIDE;
45 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE; 46 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE;
46 47
47 private: 48 private:
48 StatusAreaButton::Delegate* delegate_; 49 StatusAreaButton::Delegate* delegate_;
49 50
50 // True if focus needs to be returned via |return_focus_cb_| when it wraps. 51 // True if focus needs to be returned via |return_focus_cb_| when it wraps.
51 bool need_return_focus_; 52 bool need_return_focus_;
52 ReturnFocusCallback return_focus_cb_; 53 ReturnFocusCallback return_focus_cb_;
53 54
54 std::list<StatusAreaButton*> buttons_; 55 std::list<StatusAreaButton*> buttons_;
55 56
56 // Clears focus and calls |return_focus_cb_|. 57 // Clears focus and calls |return_focus_cb_|.
57 void ReturnFocus(bool reverse); 58 void ReturnFocus(bool reverse);
58 59
59 DISALLOW_COPY_AND_ASSIGN(StatusAreaView); 60 DISALLOW_COPY_AND_ASSIGN(StatusAreaView);
60 }; 61 };
61 62
62 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_ 63 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/status/status_area_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698