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

Side by Side Diff: ui/v2/src/view_private.h

Issue 682713003: Update a bunch of OWNERS files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_V2_SRC_VIEW_PRIVATE_H_
6 #define UI_V2_SRC_VIEW_PRIVATE_H_
7
8 #include "base/observer_list.h"
9 #include "ui/v2/public/view.h"
10
11 namespace gfx {
12 class Rect;
13 }
14
15 namespace v2 {
16
17 class ViewObserver;
18
19 // Friend of View. Provides a way to access view state for the implementation
20 // of class View.
21 class ViewPrivate {
22 public:
23 explicit ViewPrivate(View* view);
24 ~ViewPrivate();
25
26 ObserverList<ViewObserver>* observers() { return &view_->observers_; }
27
28 void ClearParent() { view_->parent_ = NULL; }
29
30 void set_bounds(const gfx::Rect& bounds) { view_->bounds_ = bounds; }
31
32 private:
33 View* view_;
34
35 DISALLOW_COPY_AND_ASSIGN(ViewPrivate);
36 };
37
38 } // namespace v2
39
40 #endif // UI_V2_SRC_VIEW_PRIVATE_H_
OLDNEW
« OWNERS ('K') | « ui/v2/src/view_observer.cc ('k') | ui/v2/src/view_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698