Index: content/browser/frame_host/frame_tree_node.h |
diff --git a/content/browser/frame_host/frame_tree_node.h b/content/browser/frame_host/frame_tree_node.h |
index c56f21dd8ebb3a2ab72c96b9ed6628bf2a484bff..2d033a65db6f56f0f7ad88b946186f2f8457c79c 100644 |
--- a/content/browser/frame_host/frame_tree_node.h |
+++ b/content/browser/frame_host/frame_tree_node.h |
@@ -203,6 +203,12 @@ class CONTENT_EXPORT FrameTreeNode { |
// FrameTree::ForEach to stop all loads in the entire FrameTree. |
bool StopLoading(); |
+ // Returns the time this frame was last focused. |
+ base::TimeTicks last_focus_time() const { return last_focus_time_; } |
+ void set_last_focus_time(const base::TimeTicks& last_focus_time) { |
+ last_focus_time_ = last_focus_time; |
+ } |
+ |
private: |
class OpenerDestroyedObserver; |
@@ -281,6 +287,8 @@ class CONTENT_EXPORT FrameTreeNode { |
// List of objects observing this FrameTreeNode. |
base::ObserverList<Observer> observers_; |
+ base::TimeTicks last_focus_time_; |
+ |
DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
}; |