Chromium Code Reviews| 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 "base/memory/scoped_ptr.h" | |
|
dmazzoni
2011/12/13 20:52:36
Not needed, I think, if included by the .h file?
David Tseng
2011/12/13 23:59:22
Done.
| |
| 9 #include "content/browser/accessibility/browser_accessibility_manager.h" | |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 9 | 11 |
| 10 #if defined(TOOLKIT_USES_GTK) | 12 #if defined(TOOLKIT_USES_GTK) |
| 11 #include <gdk/gdkx.h> | 13 #include <gdk/gdkx.h> |
| 12 #include <gtk/gtk.h> | 14 #include <gtk/gtk.h> |
| 13 | 15 |
| 14 #include "content/browser/renderer_host/gtk_window_utils.h" | 16 #include "content/browser/renderer_host/gtk_window_utils.h" |
| 15 #endif | 17 #endif |
| 16 | 18 |
| 17 #if defined(TOUCH_UI) && !defined(USE_AURA) | 19 #if defined(TOUCH_UI) && !defined(USE_AURA) |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 32 } | 34 } |
| 33 | 35 |
| 34 RenderWidgetHostView::~RenderWidgetHostView() { | 36 RenderWidgetHostView::~RenderWidgetHostView() { |
| 35 DCHECK(!mouse_locked_); | 37 DCHECK(!mouse_locked_); |
| 36 } | 38 } |
| 37 | 39 |
| 38 void RenderWidgetHostView::SetBackground(const SkBitmap& background) { | 40 void RenderWidgetHostView::SetBackground(const SkBitmap& background) { |
| 39 background_ = background; | 41 background_ = background; |
| 40 } | 42 } |
| 41 | 43 |
| 44 BrowserAccessibilityManager* | |
| 45 RenderWidgetHostView::browser_accessibility_manager() { | |
| 46 return browser_accessibility_manager_.get(); | |
|
dmazzoni
2011/12/13 20:52:36
Check indentation
David Tseng
2011/12/13 23:59:22
Done.
| |
| 47 } | |
| 48 | |
| 49 void RenderWidgetHostView::set_browser_accessibility_manager( | |
| 50 BrowserAccessibilityManager* manager) { | |
| 51 browser_accessibility_manager_.reset(manager); | |
|
dmazzoni
2011/12/13 20:52:36
Check indentation
David Tseng
2011/12/13 23:59:22
Done.
| |
| 52 } | |
| 42 | 53 |
| 43 void RenderWidgetHostView::SelectionChanged(const string16& text, | 54 void RenderWidgetHostView::SelectionChanged(const string16& text, |
| 44 size_t offset, | 55 size_t offset, |
| 45 const ui::Range& range) { | 56 const ui::Range& range) { |
| 46 selection_text_ = text; | 57 selection_text_ = text; |
| 47 selection_text_offset_ = offset; | 58 selection_text_offset_ = offset; |
| 48 selection_range_.set_start(range.start()); | 59 selection_range_.set_start(range.start()); |
| 49 selection_range_.set_end(range.end()); | 60 selection_range_.set_end(range.end()); |
| 50 } | 61 } |
| OLD | NEW |