| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #import "chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegat
e.h" | 5 #import "chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegat
e.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 view_id_util::UnsetID(view); | 99 view_id_util::UnsetID(view); |
| 100 } | 100 } |
| 101 | 101 |
| 102 // Handle an event. All incoming key and mouse events flow through this | 102 // Handle an event. All incoming key and mouse events flow through this |
| 103 // delegate method if implemented. Return YES if the event is fully handled, or | 103 // delegate method if implemented. Return YES if the event is fully handled, or |
| 104 // NO if normal processing should take place. | 104 // NO if normal processing should take place. |
| 105 - (BOOL)handleEvent:(NSEvent*)event { | 105 - (BOOL)handleEvent:(NSEvent*)event { |
| 106 return [historySwiper_ handleEvent:event]; | 106 return [historySwiper_ handleEvent:event]; |
| 107 } | 107 } |
| 108 | 108 |
| 109 // Notification of scroll offset pinning. | |
| 110 - (void)scrollOffsetPinnedToLeft:(BOOL)left toRight:(BOOL)right { | |
| 111 } | |
| 112 | |
| 113 // Notification of whether the view has a horizontal scrollbar. | |
| 114 - (void)setHasHorizontalScrollbar:(BOOL)has_horizontal_scrollbar { | |
| 115 } | |
| 116 | |
| 117 // NSWindow events. | 109 // NSWindow events. |
| 118 | 110 |
| 119 - (void)beginGestureWithEvent:(NSEvent*)event { | 111 - (void)beginGestureWithEvent:(NSEvent*)event { |
| 120 [historySwiper_ beginGestureWithEvent:event]; | 112 [historySwiper_ beginGestureWithEvent:event]; |
| 121 } | 113 } |
| 122 | 114 |
| 123 - (void)endGestureWithEvent:(NSEvent*)event { | 115 - (void)endGestureWithEvent:(NSEvent*)event { |
| 124 [historySwiper_ endGestureWithEvent:event]; | 116 [historySwiper_ endGestureWithEvent:event]; |
| 125 } | 117 } |
| 126 | 118 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 } | 254 } |
| 263 | 255 |
| 264 - (void)spellCheckEnabled:(BOOL)enabled checked:(BOOL)checked { | 256 - (void)spellCheckEnabled:(BOOL)enabled checked:(BOOL)checked { |
| 265 spellcheckEnabled_ = enabled; | 257 spellcheckEnabled_ = enabled; |
| 266 spellcheckChecked_ = checked; | 258 spellcheckChecked_ = checked; |
| 267 } | 259 } |
| 268 | 260 |
| 269 // END Spellchecking methods | 261 // END Spellchecking methods |
| 270 | 262 |
| 271 @end | 263 @end |
| OLD | NEW |