| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/renderer/print_web_view_helper.h" | 5 #include "chrome/renderer/print_web_view_helper.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/gfx/jpeg_codec.h" | 8 #include "base/gfx/jpeg_codec.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 int32 PrintWebViewHelper::routing_id() { | 157 int32 PrintWebViewHelper::routing_id() { |
| 158 return render_view_->routing_id(); | 158 return render_view_->routing_id(); |
| 159 } | 159 } |
| 160 | 160 |
| 161 void PrintWebViewHelper::didStopLoading() { | 161 void PrintWebViewHelper::didStopLoading() { |
| 162 DCHECK(print_pages_params_.get() != NULL); | 162 DCHECK(print_pages_params_.get() != NULL); |
| 163 PrintPages(*print_pages_params_.get(), print_web_view_->GetMainFrame()); | 163 PrintPages(*print_pages_params_.get(), print_web_view_->GetMainFrame()); |
| 164 } | 164 } |
| 165 | 165 |
| 166 WebString PrintWebViewHelper::autoCorrectWord(const WebString& word) { |
| 167 return word; |
| 168 } |
| 169 |
| 166 WebRect PrintWebViewHelper::windowRect() { | 170 WebRect PrintWebViewHelper::windowRect() { |
| 167 NOTREACHED(); | 171 NOTREACHED(); |
| 168 return WebRect(); | 172 return WebRect(); |
| 169 } | 173 } |
| 170 | 174 |
| 171 WebRect PrintWebViewHelper::windowResizerRect() { | 175 WebRect PrintWebViewHelper::windowResizerRect() { |
| 172 NOTREACHED(); | 176 NOTREACHED(); |
| 173 return WebRect(); | 177 return WebRect(); |
| 174 } | 178 } |
| 175 | 179 |
| 176 WebRect PrintWebViewHelper::rootWindowRect() { | 180 WebRect PrintWebViewHelper::rootWindowRect() { |
| 177 NOTREACHED(); | 181 NOTREACHED(); |
| 178 return WebRect(); | 182 return WebRect(); |
| 179 } | 183 } |
| 180 | 184 |
| 181 WebScreenInfo PrintWebViewHelper::screenInfo() { | 185 WebScreenInfo PrintWebViewHelper::screenInfo() { |
| 182 NOTREACHED(); | 186 NOTREACHED(); |
| 183 return WebScreenInfo(); | 187 return WebScreenInfo(); |
| 184 } | 188 } |
| OLD | NEW |