OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "content/browser/tab_contents/tab_contents_observer.h" | 5 #include "content/browser/tab_contents/tab_contents_observer.h" |
6 | 6 |
7 #include "content/browser/renderer_host/render_view_host.h" | 7 #include "content/browser/renderer_host/render_view_host.h" |
8 #include "content/browser/tab_contents/navigation_details.h" | 8 #include "content/browser/tab_contents/navigation_details.h" |
9 #include "content/browser/tab_contents/tab_contents.h" | 9 #include "content/browser/tab_contents/tab_contents.h" |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 void TabContentsObserver::DocumentLoadedInFrame(int64 frame_id) { | 55 void TabContentsObserver::DocumentLoadedInFrame(int64 frame_id) { |
56 } | 56 } |
57 | 57 |
58 void TabContentsObserver::DidFinishLoad(int64 frame_id) { | 58 void TabContentsObserver::DidFinishLoad(int64 frame_id) { |
59 } | 59 } |
60 | 60 |
61 void TabContentsObserver::DidGetUserGesture() { | 61 void TabContentsObserver::DidGetUserGesture() { |
62 } | 62 } |
63 | 63 |
| 64 void TabContentsObserver::DidGetIgnoredUIEvent() { |
| 65 } |
| 66 |
64 void TabContentsObserver::DidBecomeSelected() { | 67 void TabContentsObserver::DidBecomeSelected() { |
65 } | 68 } |
66 | 69 |
67 void TabContentsObserver::DidStartLoading() { | 70 void TabContentsObserver::DidStartLoading() { |
68 } | 71 } |
69 | 72 |
70 void TabContentsObserver::DidStopLoading() { | 73 void TabContentsObserver::DidStopLoading() { |
71 } | 74 } |
72 | 75 |
73 void TabContentsObserver::RenderViewGone() { | 76 void TabContentsObserver::RenderViewGone() { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 } | 137 } |
135 | 138 |
136 void TabContentsObserver::TabContentsDestroyed() { | 139 void TabContentsObserver::TabContentsDestroyed() { |
137 // Do cleanup so that 'this' can safely be deleted from | 140 // Do cleanup so that 'this' can safely be deleted from |
138 // TabContentsDestroyed. | 141 // TabContentsDestroyed. |
139 tab_contents_->RemoveObserver(this); | 142 tab_contents_->RemoveObserver(this); |
140 TabContents* tab = tab_contents_; | 143 TabContents* tab = tab_contents_; |
141 tab_contents_ = NULL; | 144 tab_contents_ = NULL; |
142 TabContentsDestroyed(tab); | 145 TabContentsDestroyed(tab); |
143 } | 146 } |
OLD | NEW |