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

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

Issue 5790002: [gtk] tabcontents fade-out for instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 glMatrixMode(GL_MODELVIEW); 1114 glMatrixMode(GL_MODELVIEW);
1115 glLoadIdentity(); 1115 glLoadIdentity();
1116 1116
1117 plugin_container_manager_.Draw(context, plugin_handle); 1117 plugin_container_manager_.Draw(context, plugin_handle);
1118 } 1118 }
1119 1119
1120 void RenderWidgetHostViewMac::ForceTextureReload() { 1120 void RenderWidgetHostViewMac::ForceTextureReload() {
1121 plugin_container_manager_.ForceTextureReload(); 1121 plugin_container_manager_.ForceTextureReload();
1122 } 1122 }
1123 1123
1124 void RenderWidgetHostViewMac::SetVisuallyDeemphasized(bool deemphasized) {
1125 // Mac uses tab-modal sheets, so this is a no-op.
1126 }
1127
1128 void RenderWidgetHostViewMac::ShutdownHost() { 1124 void RenderWidgetHostViewMac::ShutdownHost() {
1129 shutdown_factory_.RevokeAll(); 1125 shutdown_factory_.RevokeAll();
1130 render_widget_host_->Shutdown(); 1126 render_widget_host_->Shutdown();
1131 // Do not touch any members at this point, |this| has been deleted. 1127 // Do not touch any members at this point, |this| has been deleted.
1132 } 1128 }
1133 1129
1134 bool RenderWidgetHostViewMac::IsVoiceOverRunning() { 1130 bool RenderWidgetHostViewMac::IsVoiceOverRunning() {
1135 NSUserDefaults* user_defaults = [NSUserDefaults standardUserDefaults]; 1131 NSUserDefaults* user_defaults = [NSUserDefaults standardUserDefaults];
1136 [user_defaults addSuiteNamed:@"com.apple.universalaccess"]; 1132 [user_defaults addSuiteNamed:@"com.apple.universalaccess"];
1137 return 1 == [user_defaults integerForKey:@"voiceOverOnOffKey"]; 1133 return 1 == [user_defaults integerForKey:@"voiceOverOnOffKey"];
(...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
2678 if (!string) return NO; 2674 if (!string) return NO;
2679 2675
2680 // If the user is currently using an IME, confirm the IME input, 2676 // If the user is currently using an IME, confirm the IME input,
2681 // and then insert the text from the service, the same as TextEdit and Safari. 2677 // and then insert the text from the service, the same as TextEdit and Safari.
2682 [self confirmComposition]; 2678 [self confirmComposition];
2683 [self insertText:string]; 2679 [self insertText:string];
2684 return YES; 2680 return YES;
2685 } 2681 }
2686 2682
2687 @end 2683 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698