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

Side by Side Diff: ui/gfx/insets_f.h

Issue 10221028: Move DIP translation from ui/aura to ui/compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert change i made by accident Created 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 UI_GFX_INSETS_F_H_ 5 #ifndef UI_GFX_INSETS_F_H_
6 #define UI_GFX_INSETS_F_H_ 6 #define UI_GFX_INSETS_F_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "ui/base/ui_export.h" 12 #include "ui/base/ui_export.h"
13 13
14 #if !defined(ENABLE_DIP)
15 #error "This class should be used only when DIP feature is enabled"
16 #endif
17
18 namespace gfx { 14 namespace gfx {
19 15
20 // A floating versino of gfx::Insets. This is copied, instead of using 16 // A floating versino of gfx::Insets. This is copied, instead of using
21 // template, to avoid conflict with m19 branch. 17 // template, to avoid conflict with m19 branch.
22 // TODO(oshima): Merge this to ui/gfx/insets.h using template. 18 // TODO(oshima): Merge this to ui/gfx/insets.h using template.
23 class UI_EXPORT InsetsF { 19 class UI_EXPORT InsetsF {
24 public: 20 public:
25 InsetsF() : top_(0), left_(0), bottom_(0), right_(0) {} 21 InsetsF() : top_(0), left_(0), bottom_(0), right_(0) {}
26 InsetsF(float top, float left, float bottom, float right) 22 InsetsF(float top, float left, float bottom, float right)
27 : top_(top), 23 : top_(top),
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 private: 76 private:
81 float top_; 77 float top_;
82 float left_; 78 float left_;
83 float bottom_; 79 float bottom_;
84 float right_; 80 float right_;
85 }; 81 };
86 82
87 } // namespace gfx 83 } // namespace gfx
88 84
89 #endif // UI_GFX_INSETS_F_H_ 85 #endif // UI_GFX_INSETS_F_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698