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 #include "chrome/browser/ui/search/instant_ntp.h" | 5 #include "chrome/browser/ui/search/instant_ntp.h" |
6 | 6 |
7 #include "chrome/browser/ui/search/search_tab_helper.h" | 7 #include "chrome/browser/ui/search/search_tab_helper.h" |
8 #include "content/public/browser/navigation_entry.h" | 8 #include "content/public/browser/navigation_entry.h" |
9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 scoped_ptr<content::WebContents> InstantNTP::ReleaseContents() { | 31 scoped_ptr<content::WebContents> InstantNTP::ReleaseContents() { |
32 SetContents(NULL); | 32 SetContents(NULL); |
33 return loader_.ReleaseContents(); | 33 return loader_.ReleaseContents(); |
34 } | 34 } |
35 | 35 |
36 void InstantNTP::RenderViewCreated(content::RenderViewHost* render_view_host) { | 36 void InstantNTP::RenderViewCreated(content::RenderViewHost* render_view_host) { |
37 delegate()->InstantPageRenderViewCreated(contents()); | 37 delegate()->InstantPageRenderViewCreated(contents()); |
38 } | 38 } |
39 | 39 |
40 void InstantNTP::RenderViewGone(base::TerminationStatus /* status */) { | 40 void InstantNTP::RenderProcessGone(base::TerminationStatus /* status */) { |
41 delegate()->InstantPageRenderViewGone(contents()); | 41 delegate()->InstantPageRenderProcessGone(contents()); |
42 } | 42 } |
43 | 43 |
44 void InstantNTP::OnSwappedContents() { | 44 void InstantNTP::OnSwappedContents() { |
45 SetContents(loader_.contents()); | 45 SetContents(loader_.contents()); |
46 } | 46 } |
47 | 47 |
48 void InstantNTP::OnFocus() { | 48 void InstantNTP::OnFocus() { |
49 NOTREACHED(); | 49 NOTREACHED(); |
50 } | 50 } |
51 | 51 |
52 void InstantNTP::OnMouseDown() { | 52 void InstantNTP::OnMouseDown() { |
53 NOTREACHED(); | 53 NOTREACHED(); |
54 } | 54 } |
55 | 55 |
56 void InstantNTP::OnMouseUp() { | 56 void InstantNTP::OnMouseUp() { |
57 NOTREACHED(); | 57 NOTREACHED(); |
58 } | 58 } |
59 | 59 |
60 content::WebContents* InstantNTP::OpenURLFromTab( | 60 content::WebContents* InstantNTP::OpenURLFromTab( |
61 content::WebContents* source, | 61 content::WebContents* source, |
62 const content::OpenURLParams& params) { | 62 const content::OpenURLParams& params) { |
63 return NULL; | 63 return NULL; |
64 } | 64 } |
65 | 65 |
66 void InstantNTP::LoadCompletedMainFrame() { | 66 void InstantNTP::LoadCompletedMainFrame() { |
67 } | 67 } |
OLD | NEW |