| 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 "pdf/preview_mode_client.h" | 5 #include "pdf/preview_mode_client.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 | 10 |
| 11 namespace chrome_pdf { | 11 namespace chrome_pdf { |
| 12 | 12 |
| 13 PreviewModeClient::PreviewModeClient(Client* client) | 13 PreviewModeClient::PreviewModeClient(Client* client) : client_(client) {} |
| 14 : client_(client) { | |
| 15 } | |
| 16 | 14 |
| 17 void PreviewModeClient::DocumentSizeUpdated(const pp::Size& size) { | 15 void PreviewModeClient::DocumentSizeUpdated(const pp::Size& size) {} |
| 18 } | |
| 19 | 16 |
| 20 void PreviewModeClient::Invalidate(const pp::Rect& rect) { | 17 void PreviewModeClient::Invalidate(const pp::Rect& rect) { |
| 21 NOTREACHED(); | 18 NOTREACHED(); |
| 22 } | 19 } |
| 23 | 20 |
| 24 void PreviewModeClient::Scroll(const pp::Point& point) { | 21 void PreviewModeClient::Scroll(const pp::Point& point) { |
| 25 NOTREACHED(); | 22 NOTREACHED(); |
| 26 } | 23 } |
| 27 | 24 |
| 28 void PreviewModeClient::ScrollToX(int position) { | 25 void PreviewModeClient::ScrollToX(int position) { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 NOTREACHED(); | 158 NOTREACHED(); |
| 162 return false; | 159 return false; |
| 163 } | 160 } |
| 164 | 161 |
| 165 uint32_t PreviewModeClient::GetBackgroundColor() { | 162 uint32_t PreviewModeClient::GetBackgroundColor() { |
| 166 NOTREACHED(); | 163 NOTREACHED(); |
| 167 return 0; | 164 return 0; |
| 168 } | 165 } |
| 169 | 166 |
| 170 } // namespace chrome_pdf | 167 } // namespace chrome_pdf |
| OLD | NEW |