Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 390 | 390 |
| 391 // Tears down the browser-side state relating to the Mojo connection between | 391 // Tears down the browser-side state relating to the Mojo connection between |
| 392 // this instance and its associated render frame. | 392 // this instance and its associated render frame. |
| 393 void InvalidateMojoConnection(); | 393 void InvalidateMojoConnection(); |
| 394 | 394 |
| 395 // Returns whether the frame is focused. A frame is considered focused when it | 395 // Returns whether the frame is focused. A frame is considered focused when it |
| 396 // is the focused frame within its frame tree and its associated | 396 // is the focused frame within its frame tree and its associated |
| 397 // RenderWidgetHost is also focused. | 397 // RenderWidgetHost is also focused. |
| 398 bool IsFocused() const; | 398 bool IsFocused() const; |
| 399 | 399 |
| 400 // Returns the visibility state of the frame. The different visibility states | |
| 401 // of a frame a define in Blink. | |
|
Charlie Reis
2015/01/22 21:03:55
nit: are defined
mlamouri (slow - plz ping)
2015/01/23 12:32:58
Sorry for those typos :(
| |
| 402 blink::WebPageVisibilityState GetVisibilityState(); | |
| 403 | |
| 400 protected: | 404 protected: |
| 401 friend class RenderFrameHostFactory; | 405 friend class RenderFrameHostFactory; |
| 402 | 406 |
| 403 // |flags| is a combination of CreateRenderFrameFlags. | 407 // |flags| is a combination of CreateRenderFrameFlags. |
| 404 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 408 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
| 405 // should be the abstraction needed here, but we need RenderViewHost to pass | 409 // should be the abstraction needed here, but we need RenderViewHost to pass |
| 406 // into WebContentsObserver::FrameDetached for now. | 410 // into WebContentsObserver::FrameDetached for now. |
| 407 RenderFrameHostImpl(RenderViewHostImpl* render_view_host, | 411 RenderFrameHostImpl(RenderViewHostImpl* render_view_host, |
| 408 RenderFrameHostDelegate* delegate, | 412 RenderFrameHostDelegate* delegate, |
| 409 FrameTree* frame_tree, | 413 FrameTree* frame_tree, |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 632 | 636 |
| 633 // NOTE: This must be the last member. | 637 // NOTE: This must be the last member. |
| 634 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 638 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 635 | 639 |
| 636 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 640 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 637 }; | 641 }; |
| 638 | 642 |
| 639 } // namespace content | 643 } // namespace content |
| 640 | 644 |
| 641 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 645 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |