| 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 "content/browser/renderer_host/render_widget_host_view.h" | 5 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 9 | 10 |
| 10 #if defined(TOOLKIT_USES_GTK) | 11 #if defined(TOOLKIT_USES_GTK) |
| 11 #include <gdk/gdkx.h> | 12 #include <gdk/gdkx.h> |
| 12 #include <gtk/gtk.h> | 13 #include <gtk/gtk.h> |
| 13 | 14 |
| 14 #include "content/browser/renderer_host/gtk_window_utils.h" | 15 #include "content/browser/renderer_host/gtk_window_utils.h" |
| 15 #endif | 16 #endif |
| 16 | 17 |
| 17 #if defined(TOUCH_UI) && !defined(USE_AURA) | 18 #if defined(TOUCH_UI) && !defined(USE_AURA) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 } | 33 } |
| 33 | 34 |
| 34 RenderWidgetHostView::~RenderWidgetHostView() { | 35 RenderWidgetHostView::~RenderWidgetHostView() { |
| 35 DCHECK(!mouse_locked_); | 36 DCHECK(!mouse_locked_); |
| 36 } | 37 } |
| 37 | 38 |
| 38 void RenderWidgetHostView::SetBackground(const SkBitmap& background) { | 39 void RenderWidgetHostView::SetBackground(const SkBitmap& background) { |
| 39 background_ = background; | 40 background_ = background; |
| 40 } | 41 } |
| 41 | 42 |
| 43 BrowserAccessibilityManager* |
| 44 RenderWidgetHostView::GetBrowserAccessibilityManager() const { |
| 45 return browser_accessibility_manager_.get(); |
| 46 } |
| 47 |
| 48 void RenderWidgetHostView::SetBrowserAccessibilityManager( |
| 49 BrowserAccessibilityManager* manager) { |
| 50 browser_accessibility_manager_.reset(manager); |
| 51 } |
| 42 | 52 |
| 43 void RenderWidgetHostView::SelectionChanged(const string16& text, | 53 void RenderWidgetHostView::SelectionChanged(const string16& text, |
| 44 size_t offset, | 54 size_t offset, |
| 45 const ui::Range& range) { | 55 const ui::Range& range) { |
| 46 selection_text_ = text; | 56 selection_text_ = text; |
| 47 selection_text_offset_ = offset; | 57 selection_text_offset_ = offset; |
| 48 selection_range_.set_start(range.start()); | 58 selection_range_.set_start(range.start()); |
| 49 selection_range_.set_end(range.end()); | 59 selection_range_.set_end(range.end()); |
| 50 } | 60 } |
| OLD | NEW |