Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: content/renderer/render_widget_fullscreen_pepper.cc

Issue 6289009: [Mac] Implement the system dictionary popup by implementing NSTextInput methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Clang Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_widget.cc ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/renderer/render_widget_fullscreen_pepper.h" 5 #include "content/renderer/render_widget_fullscreen_pepper.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "content/common/view_messages.h" 8 #include "content/common/view_messages.h"
9 #include "content/renderer/renderer_gl_context.h" 9 #include "content/renderer/renderer_gl_context.h"
10 #include "content/renderer/gpu_channel_host.h" 10 #include "content/renderer/gpu_channel_host.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 155
156 virtual WebRect caretOrSelectionBounds() { 156 virtual WebRect caretOrSelectionBounds() {
157 return WebRect(); 157 return WebRect();
158 } 158 }
159 159
160 virtual bool selectionRange(WebPoint& start, WebPoint& end) const { 160 virtual bool selectionRange(WebPoint& start, WebPoint& end) const {
161 return false; 161 return false;
162 } 162 }
163 163
164 virtual bool selectionRange(size_t *location, size_t *length) {
165 return false;
166 }
167
168 virtual bool caretOrSelectionRange(size_t* location, size_t* length) { 164 virtual bool caretOrSelectionRange(size_t* location, size_t* length) {
169 return false; 165 return false;
170 } 166 }
171 167
172 virtual void setTextDirection(WebTextDirection) { 168 virtual void setTextDirection(WebTextDirection) {
173 } 169 }
174 170
175 virtual bool isAcceleratedCompositingActive() const { 171 virtual bool isAcceleratedCompositingActive() const {
176 return widget_->context() && (plugin_->GetBackingTextureId() != 0); 172 return widget_->context() && (plugin_->GetBackingTextureId() != 0);
177 } 173 }
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 // Destroy the context later, in case we got called from InitContext for 453 // Destroy the context later, in case we got called from InitContext for
458 // example. We still need to reset context_ now so that a new context gets 454 // example. We still need to reset context_ now so that a new context gets
459 // created when the plugin recreates its own. 455 // created when the plugin recreates its own.
460 MessageLoop::current()->PostTask( 456 MessageLoop::current()->PostTask(
461 FROM_HERE, 457 FROM_HERE,
462 NewRunnableFunction(DestroyContext, context_, program_, buffer_)); 458 NewRunnableFunction(DestroyContext, context_, program_, buffer_));
463 context_ = NULL; 459 context_ = NULL;
464 program_ = 0; 460 program_ = 0;
465 buffer_ = 0; 461 buffer_ = 0;
466 } 462 }
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698