| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "wtf/FastAllocBase.h" | 35 #include "wtf/FastAllocBase.h" |
| 36 #include "wtf/Noncopyable.h" | 36 #include "wtf/Noncopyable.h" |
| 37 #include "wtf/OwnPtr.h" | 37 #include "wtf/OwnPtr.h" |
| 38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class Chrome; | 42 class Chrome; |
| 43 class EventHandlerRegistry; | |
| 44 class Page; | 43 class Page; |
| 45 class ServiceProvider; | 44 class ServiceProvider; |
| 46 class Settings; | 45 class Settings; |
| 47 class UseCounter; | 46 class UseCounter; |
| 48 class Visitor; | 47 class Visitor; |
| 49 | 48 |
| 50 // FrameHost is the set of global data shared between multiple frames | 49 // FrameHost is the set of global data shared between multiple frames |
| 51 // and is provided by the embedder to each frame when created. | 50 // and is provided by the embedder to each frame when created. |
| 52 // FrameHost currently corresponds to the Page object in core/page | 51 // FrameHost currently corresponds to the Page object in core/page |
| 53 // however the concept of a Page is moving up out of Blink. | 52 // however the concept of a Page is moving up out of Blink. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 68 Chrome& chrome() const; | 67 Chrome& chrome() const; |
| 69 UseCounter& useCounter() const; | 68 UseCounter& useCounter() const; |
| 70 | 69 |
| 71 ServiceProvider& services() const { return m_services; } | 70 ServiceProvider& services() const { return m_services; } |
| 72 | 71 |
| 73 // Corresponds to pixel density of the device where this Page is | 72 // Corresponds to pixel density of the device where this Page is |
| 74 // being displayed. In multi-monitor setups this can vary between pages. | 73 // being displayed. In multi-monitor setups this can vary between pages. |
| 75 // This value does not account for Page zoom, use LocalFrame::devicePixelRat
io instead. | 74 // This value does not account for Page zoom, use LocalFrame::devicePixelRat
io instead. |
| 76 float deviceScaleFactor() const; | 75 float deviceScaleFactor() const; |
| 77 | 76 |
| 78 EventHandlerRegistry& eventHandlerRegistry() const; | |
| 79 | |
| 80 void trace(Visitor*); | 77 void trace(Visitor*); |
| 81 | 78 |
| 82 private: | 79 private: |
| 83 FrameHost(Page&, ServiceProvider&); | 80 FrameHost(Page&, ServiceProvider&); |
| 84 | 81 |
| 85 Page* m_page; | 82 Page* m_page; |
| 86 ServiceProvider& m_services; | 83 ServiceProvider& m_services; |
| 87 const OwnPtr<EventHandlerRegistry> m_eventHandlerRegistry; | |
| 88 }; | 84 }; |
| 89 | 85 |
| 90 } | 86 } |
| 91 | 87 |
| 92 #endif // FrameHost_h | 88 #endif // FrameHost_h |
| OLD | NEW |