| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SKY_ENGINE_CORE_VIEW_VIEW_H_ | 5 #ifndef SKY_ENGINE_CORE_VIEW_VIEW_H_ |
| 6 #define SKY_ENGINE_CORE_VIEW_VIEW_H_ | 6 #define SKY_ENGINE_CORE_VIEW_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "sky/engine/core/painting/Picture.h" | 10 #include "sky/engine/core/painting/Picture.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 Picture* picture() const { return m_picture.get(); } | 30 Picture* picture() const { return m_picture.get(); } |
| 31 void setPicture(Picture* picture) { m_picture = picture; } | 31 void setPicture(Picture* picture) { m_picture = picture; } |
| 32 | 32 |
| 33 void setEventCallback(PassOwnPtr<EventCallback> callback); | 33 void setEventCallback(PassOwnPtr<EventCallback> callback); |
| 34 | 34 |
| 35 void setBeginFrameCallback(PassOwnPtr<BeginFrameCallback> callback); | 35 void setBeginFrameCallback(PassOwnPtr<BeginFrameCallback> callback); |
| 36 void scheduleFrame(); | 36 void scheduleFrame(); |
| 37 | 37 |
| 38 void setDisplayMetrics(const SkyDisplayMetrics& metrics); | 38 void setDisplayMetrics(const SkyDisplayMetrics& metrics); |
| 39 bool handleInputEvent(PassRefPtr<Event> event); | 39 void handleInputEvent(PassRefPtr<Event> event); |
| 40 void beginFrame(base::TimeTicks frameTime); | 40 void beginFrame(base::TimeTicks frameTime); |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 explicit View(const base::Closure& scheduleFrameCallback); | 43 explicit View(const base::Closure& scheduleFrameCallback); |
| 44 | 44 |
| 45 base::Closure m_scheduleFrameCallback; | 45 base::Closure m_scheduleFrameCallback; |
| 46 SkyDisplayMetrics m_displayMetrics; | 46 SkyDisplayMetrics m_displayMetrics; |
| 47 OwnPtr<EventCallback> m_eventCallback; | 47 OwnPtr<EventCallback> m_eventCallback; |
| 48 OwnPtr<BeginFrameCallback> m_beginFrameCallback; | 48 OwnPtr<BeginFrameCallback> m_beginFrameCallback; |
| 49 RefPtr<Picture> m_picture; | 49 RefPtr<Picture> m_picture; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| 53 | 53 |
| 54 #endif // SKY_ENGINE_CORE_VIEW_VIEW_H_ | 54 #endif // SKY_ENGINE_CORE_VIEW_VIEW_H_ |
| OLD | NEW |