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_FRAME_TREE_NODE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 void DidFocus(); | 292 void DidFocus(); |
293 | 293 |
294 // Called when the user closed the modal dialogue for BeforeUnload and | 294 // Called when the user closed the modal dialogue for BeforeUnload and |
295 // cancelled the navigation. This should stop any load happening in the | 295 // cancelled the navigation. This should stop any load happening in the |
296 // FrameTreeNode. | 296 // FrameTreeNode. |
297 void BeforeUnloadCanceled(); | 297 void BeforeUnloadCanceled(); |
298 | 298 |
299 // Returns the BlameContext associated with this node. | 299 // Returns the BlameContext associated with this node. |
300 FrameTreeNodeBlameContext& blame_context() { return blame_context_; } | 300 FrameTreeNodeBlameContext& blame_context() { return blame_context_; } |
301 | 301 |
| 302 void OnSetHasReceivedUserGesture(); |
| 303 |
302 private: | 304 private: |
303 class OpenerDestroyedObserver; | 305 class OpenerDestroyedObserver; |
304 | 306 |
305 FrameTreeNode* GetSibling(int relative_offset) const; | 307 FrameTreeNode* GetSibling(int relative_offset) const; |
306 | 308 |
307 // The next available browser-global FrameTreeNode ID. | 309 // The next available browser-global FrameTreeNode ID. |
308 static int next_frame_tree_node_id_; | 310 static int next_frame_tree_node_id_; |
309 | 311 |
310 // The FrameTree that owns us. | 312 // The FrameTree that owns us. |
311 FrameTree* frame_tree_; // not owned. | 313 FrameTree* frame_tree_; // not owned. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // browser process activities to this node (when possible). It is unrelated | 384 // browser process activities to this node (when possible). It is unrelated |
383 // to the core logic of FrameTreeNode. | 385 // to the core logic of FrameTreeNode. |
384 FrameTreeNodeBlameContext blame_context_; | 386 FrameTreeNodeBlameContext blame_context_; |
385 | 387 |
386 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 388 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
387 }; | 389 }; |
388 | 390 |
389 } // namespace content | 391 } // namespace content |
390 | 392 |
391 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 393 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |