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

Side by Side Diff: sky/engine/platform/Widget.h

Issue 879993004: Remove ScrollableArea and Scrollbar (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2008 Collabora Ltd. All rights reserved. 3 * Copyright (C) 2008 Collabora Ltd. All rights reserved.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 IntRect boundsRect() const { return IntRect(0, 0, width(), height()); } 58 IntRect boundsRect() const { return IntRect(0, 0, width(), height()); }
59 59
60 void resize(int w, int h) { setFrameRect(IntRect(x(), y(), w, h)); } 60 void resize(int w, int h) { setFrameRect(IntRect(x(), y(), w, h)); }
61 void resize(const IntSize& s) { setFrameRect(IntRect(location(), s)); } 61 void resize(const IntSize& s) { setFrameRect(IntRect(location(), s)); }
62 void move(int x, int y) { setFrameRect(IntRect(x, y, width(), height())); } 62 void move(int x, int y) { setFrameRect(IntRect(x, y, width(), height())); }
63 void move(const IntPoint& p) { setFrameRect(IntRect(p, size())); } 63 void move(const IntPoint& p) { setFrameRect(IntRect(p, size())); }
64 64
65 virtual void paint(GraphicsContext*, const IntRect&) { } 65 virtual void paint(GraphicsContext*, const IntRect&) { }
66 66
67 virtual bool isFrameView() const { return false; } 67 virtual bool isFrameView() const { return false; }
68 virtual bool isScrollbar() const { return false; }
69 68
70 virtual HostWindow* hostWindow() const { ASSERT_NOT_REACHED(); return 0; } 69 virtual HostWindow* hostWindow() const { ASSERT_NOT_REACHED(); return 0; }
71 Widget* parent() const { return m_parent; } 70 Widget* parent() const { return m_parent; }
72 Widget* root() const; 71 Widget* root() const;
73 72
74 // Virtual methods to convert points to/from the containing ScrollView 73 // Virtual methods to convert points to/from the containing ScrollView
75 virtual IntRect convertToContainingView(const IntRect& localRect) const { re turn localRect; } 74 virtual IntRect convertToContainingView(const IntRect& localRect) const { re turn localRect; }
76 virtual IntRect convertFromContainingView(const IntRect& localRect) const { return localRect; } 75 virtual IntRect convertFromContainingView(const IntRect& localRect) const { return localRect; }
77 virtual IntPoint convertToContainingView(const IntPoint& localPoint) const { return localPoint; } 76 virtual IntPoint convertToContainingView(const IntPoint& localPoint) const { return localPoint; }
78 virtual IntPoint convertFromContainingView(const IntPoint& localPoint) const { return localPoint; } 77 virtual IntPoint convertFromContainingView(const IntPoint& localPoint) const { return localPoint; }
79 78
80 private: 79 private:
81 Widget* m_parent; 80 Widget* m_parent;
82 IntRect m_frame; 81 IntRect m_frame;
83 }; 82 };
84 83
85 } // namespace blink 84 } // namespace blink
86 85
87 #endif // SKY_ENGINE_PLATFORM_WIDGET_H_ 86 #endif // SKY_ENGINE_PLATFORM_WIDGET_H_
OLDNEW
« no previous file with comments | « sky/engine/platform/RuntimeEnabledFeatures.in ('k') | sky/engine/platform/scroll/ScrollAnimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698