OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_mac.h" | 5 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
6 | 6 |
7 #include "base/histogram.h" | 7 #include "base/histogram.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
10 #include "chrome/browser/browser_trial.h" | 10 #include "chrome/browser/browser_trial.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 rect.set_width(size.width()); | 142 rect.set_width(size.width()); |
143 rect.set_height(size.height()); | 143 rect.set_height(size.height()); |
144 [cocoa_view_ setFrame:[(BaseView*)[cocoa_view_ superview] RectToNSRect:rect]]; | 144 [cocoa_view_ setFrame:[(BaseView*)[cocoa_view_ superview] RectToNSRect:rect]]; |
145 } | 145 } |
146 | 146 |
147 gfx::NativeView RenderWidgetHostViewMac::GetNativeView() { | 147 gfx::NativeView RenderWidgetHostViewMac::GetNativeView() { |
148 return native_view(); | 148 return native_view(); |
149 } | 149 } |
150 | 150 |
151 void RenderWidgetHostViewMac::MovePluginWindows( | 151 void RenderWidgetHostViewMac::MovePluginWindows( |
152 const std::vector<WebPluginGeometry>& plugin_window_moves) { | 152 const std::vector<webkit_glue::WebPluginGeometry>& moves) { |
153 // All plugin stuff is TBD. TODO(avi,awalker): fill in | 153 // All plugin stuff is TBD. TODO(avi,awalker): fill in |
154 // http://crbug.com/8192 | 154 // http://crbug.com/8192 |
155 } | 155 } |
156 | 156 |
157 void RenderWidgetHostViewMac::Focus() { | 157 void RenderWidgetHostViewMac::Focus() { |
158 [[cocoa_view_ window] makeFirstResponder:cocoa_view_]; | 158 [[cocoa_view_ window] makeFirstResponder:cocoa_view_]; |
159 } | 159 } |
160 | 160 |
161 void RenderWidgetHostViewMac::Blur() { | 161 void RenderWidgetHostViewMac::Blur() { |
162 [[cocoa_view_ window] makeFirstResponder:nil]; | 162 [[cocoa_view_ window] makeFirstResponder:nil]; |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 renderWidgetHostView_->render_widget_host_->ForwardKeyboardEvent(event); | 1094 renderWidgetHostView_->render_widget_host_->ForwardKeyboardEvent(event); |
1095 } else { | 1095 } else { |
1096 renderWidgetHostView_->render_widget_host_->ImeConfirmComposition( | 1096 renderWidgetHostView_->render_widget_host_->ImeConfirmComposition( |
1097 UTF8ToUTF16([im_text UTF8String])); | 1097 UTF8ToUTF16([im_text UTF8String])); |
1098 } | 1098 } |
1099 renderWidgetHostView_->im_composing_ = false; | 1099 renderWidgetHostView_->im_composing_ = false; |
1100 } | 1100 } |
1101 | 1101 |
1102 @end | 1102 @end |
1103 | 1103 |
OLD | NEW |