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 "chrome/browser/renderer_host/render_widget_host_view_views.h" | 5 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/logging.h" |
11 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
12 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
13 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
14 #include "base/task.h" | 15 #include "base/task.h" |
15 #include "base/time.h" | 16 #include "base/time.h" |
16 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
17 #include "chrome/common/chrome_notification_types.h" | 18 #include "chrome/common/chrome_notification_types.h" |
18 #include "chrome/common/native_web_keyboard_event_views.h" | 19 #include "chrome/common/native_web_keyboard_event_views.h" |
19 #include "chrome/common/render_messages.h" | 20 #include "chrome/common/render_messages.h" |
20 #include "content/browser/renderer_host/backing_store_skia.h" | 21 #include "content/browser/renderer_host/backing_store_skia.h" |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 } | 421 } |
421 | 422 |
422 void RenderWidgetHostViewViews::SetHasHorizontalScrollbar( | 423 void RenderWidgetHostViewViews::SetHasHorizontalScrollbar( |
423 bool has_horizontal_scrollbar) { | 424 bool has_horizontal_scrollbar) { |
424 } | 425 } |
425 | 426 |
426 void RenderWidgetHostViewViews::SetScrollOffsetPinning( | 427 void RenderWidgetHostViewViews::SetScrollOffsetPinning( |
427 bool is_pinned_to_left, bool is_pinned_to_right) { | 428 bool is_pinned_to_left, bool is_pinned_to_right) { |
428 } | 429 } |
429 | 430 |
| 431 bool RenderWidgetHostViewViews::LockMouse() { |
| 432 NOTIMPLEMENTED(); |
| 433 return false; |
| 434 } |
| 435 |
| 436 void RenderWidgetHostViewViews::UnlockMouse() { |
| 437 NOTIMPLEMENTED(); |
| 438 } |
| 439 |
430 void RenderWidgetHostViewViews::SelectRect(const gfx::Point& start, | 440 void RenderWidgetHostViewViews::SelectRect(const gfx::Point& start, |
431 const gfx::Point& end) { | 441 const gfx::Point& end) { |
432 if (host_) | 442 if (host_) |
433 host_->Send(new ViewMsg_SelectRange(host_->routing_id(), start, end)); | 443 host_->Send(new ViewMsg_SelectRange(host_->routing_id(), start, end)); |
434 } | 444 } |
435 | 445 |
436 bool RenderWidgetHostViewViews::IsCommandIdChecked(int command_id) const { | 446 bool RenderWidgetHostViewViews::IsCommandIdChecked(int command_id) const { |
437 NOTREACHED(); | 447 NOTREACHED(); |
438 return true; | 448 return true; |
439 } | 449 } |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 } | 1014 } |
1005 #endif | 1015 #endif |
1006 | 1016 |
1007 #if defined(USE_AURA) | 1017 #if defined(USE_AURA) |
1008 // static | 1018 // static |
1009 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( | 1019 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( |
1010 RenderWidgetHost* widget) { | 1020 RenderWidgetHost* widget) { |
1011 return new RenderWidgetHostViewViews(widget); | 1021 return new RenderWidgetHostViewViews(widget); |
1012 } | 1022 } |
1013 #endif | 1023 #endif |
OLD | NEW |