OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/tab_contents/web_contents_view_mac.h" | 5 #include "chrome/browser/tab_contents/web_contents_view_mac.h" |
6 | 6 |
7 #include "chrome/browser/browser.h" // TODO(beng): this dependency is awful. | 7 #include "chrome/browser/browser.h" // TODO(beng): this dependency is awful. |
8 #include "chrome/browser/cocoa/sad_tab_view.h" | 8 #include "chrome/browser/cocoa/sad_tab_view.h" |
9 #include "chrome/browser/renderer_host/render_widget_host.h" | 9 #include "chrome/browser/renderer_host/render_widget_host.h" |
10 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" | 10 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 void WebContentsViewMac::Invalidate() { | 93 void WebContentsViewMac::Invalidate() { |
94 [cocoa_view_.get() setNeedsDisplay:YES]; | 94 [cocoa_view_.get() setNeedsDisplay:YES]; |
95 } | 95 } |
96 | 96 |
97 void WebContentsViewMac::SizeContents(const gfx::Size& size) { | 97 void WebContentsViewMac::SizeContents(const gfx::Size& size) { |
98 // TODO(brettw) this is a hack and should be removed. See web_contents_view.h. | 98 // TODO(brettw) this is a hack and should be removed. See web_contents_view.h. |
99 NOTIMPLEMENTED(); // Leaving the hack unimplemented. | 99 NOTIMPLEMENTED(); // Leaving the hack unimplemented. |
100 } | 100 } |
101 | 101 |
| 102 void WebContentsViewMac::OpenDeveloperTools() { |
| 103 NOTIMPLEMENTED(); |
| 104 } |
| 105 |
| 106 void WebContentsViewMac::ForwardMessageToDevToolsClient( |
| 107 const IPC::Message& message) { |
| 108 NOTIMPLEMENTED(); |
| 109 } |
| 110 |
102 void WebContentsViewMac::FindInPage(const Browser& browser, | 111 void WebContentsViewMac::FindInPage(const Browser& browser, |
103 bool find_next, bool forward_direction) { | 112 bool find_next, bool forward_direction) { |
104 if (!find_bar_.get()) { | 113 if (!find_bar_.get()) { |
105 // We want the Chrome top-level (Frame) window. | 114 // We want the Chrome top-level (Frame) window. |
106 NSWindow* window = | 115 NSWindow* window = |
107 static_cast<NSWindow*>(browser.window()->GetNativeHandle()); | 116 static_cast<NSWindow*>(browser.window()->GetNativeHandle()); |
108 find_bar_.reset(new FindBarMac(this, window)); | 117 find_bar_.reset(new FindBarMac(this, window)); |
109 } else { | 118 } else { |
110 find_bar_->Show(); | 119 find_bar_->Show(); |
111 } | 120 } |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 NOTREACHED() << "Got a notification we didn't register for."; | 239 NOTREACHED() << "Got a notification we didn't register for."; |
231 } | 240 } |
232 } | 241 } |
233 | 242 |
234 @implementation WebContentsViewCocoa | 243 @implementation WebContentsViewCocoa |
235 | 244 |
236 // Tons of stuff goes here, where we grab events going on in Cocoaland and send | 245 // Tons of stuff goes here, where we grab events going on in Cocoaland and send |
237 // them into the C++ system. TODO(avi): all that jazz | 246 // them into the C++ system. TODO(avi): all that jazz |
238 | 247 |
239 @end | 248 @end |
OLD | NEW |