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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_mac.mm

Issue 4399003: Deleted code associated with --enable-gpu-rendering and... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <QuartzCore/QuartzCore.h> 5 #include <QuartzCore/QuartzCore.h>
6 6
7 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" 7 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h"
8 8
9 #include "app/app_switches.h" 9 #include "app/app_switches.h"
10 #include "app/surface/io_surface_support_mac.h" 10 #include "app/surface/io_surface_support_mac.h"
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 // 802 //
803 void RenderWidgetHostViewMac::SelectionChanged(const std::string& text) { 803 void RenderWidgetHostViewMac::SelectionChanged(const std::string& text) {
804 selected_text_ = text; 804 selected_text_ = text;
805 } 805 }
806 806
807 BackingStore* RenderWidgetHostViewMac::AllocBackingStore( 807 BackingStore* RenderWidgetHostViewMac::AllocBackingStore(
808 const gfx::Size& size) { 808 const gfx::Size& size) {
809 return new BackingStoreMac(render_widget_host_, size); 809 return new BackingStoreMac(render_widget_host_, size);
810 } 810 }
811 811
812 VideoLayer* RenderWidgetHostViewMac::AllocVideoLayer(
813 const gfx::Size& size) {
814 NOTIMPLEMENTED();
815 return NULL;
816 }
817
818 // Sets whether or not to accept first responder status. 812 // Sets whether or not to accept first responder status.
819 void RenderWidgetHostViewMac::SetTakesFocusOnlyOnMouseDown(bool flag) { 813 void RenderWidgetHostViewMac::SetTakesFocusOnlyOnMouseDown(bool flag) {
820 [cocoa_view_ setTakesFocusOnlyOnMouseDown:flag]; 814 [cocoa_view_ setTakesFocusOnlyOnMouseDown:flag];
821 } 815 }
822 816
823 void RenderWidgetHostViewMac::KillSelf() { 817 void RenderWidgetHostViewMac::KillSelf() {
824 if (shutdown_factory_.empty()) { 818 if (shutdown_factory_.empty()) {
825 [cocoa_view_ setHidden:YES]; 819 [cocoa_view_ setHidden:YES];
826 MessageLoop::current()->PostTask(FROM_HERE, 820 MessageLoop::current()->PostTask(FROM_HERE,
827 shutdown_factory_.NewRunnableMethod( 821 shutdown_factory_.NewRunnableMethod(
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after
2562 if (!string) return NO; 2556 if (!string) return NO;
2563 2557
2564 // If the user is currently using an IME, confirm the IME input, 2558 // If the user is currently using an IME, confirm the IME input,
2565 // and then insert the text from the service, the same as TextEdit and Safari. 2559 // and then insert the text from the service, the same as TextEdit and Safari.
2566 [self confirmComposition]; 2560 [self confirmComposition];
2567 [self insertText:string]; 2561 [self insertText:string];
2568 return YES; 2562 return YES;
2569 } 2563 }
2570 2564
2571 @end 2565 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698