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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host.h

Issue 165293: Supports Gtk keyboard themes.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/process.h" 11 #include "base/process.h"
12 #include "base/gfx/native_widget_types.h" 12 #include "base/gfx/native_widget_types.h"
13 #include "base/gfx/size.h" 13 #include "base/gfx/size.h"
14 #include "base/scoped_ptr.h" 14 #include "base/scoped_ptr.h"
15 #include "base/timer.h" 15 #include "base/timer.h"
16 #include "chrome/common/edit_command.h"
16 #include "chrome/common/native_web_keyboard_event.h" 17 #include "chrome/common/native_web_keyboard_event.h"
17 #include "chrome/common/property_bag.h" 18 #include "chrome/common/property_bag.h"
18 #include "ipc/ipc_channel.h" 19 #include "ipc/ipc_channel.h"
19 #include "testing/gtest/include/gtest/gtest_prod.h" 20 #include "testing/gtest/include/gtest/gtest_prod.h"
20 #include "webkit/api/public/WebTextDirection.h" 21 #include "webkit/api/public/WebTextDirection.h"
21 22
22 namespace gfx { 23 namespace gfx {
23 class Rect; 24 class Rect;
24 } 25 }
25 26
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // repaint. 239 // repaint.
239 void SystemThemeChanged(); 240 void SystemThemeChanged();
240 241
241 // Forwards the given message to the renderer. These are called by the view 242 // Forwards the given message to the renderer. These are called by the view
242 // when it has received a message. 243 // when it has received a message.
243 virtual void ForwardMouseEvent(const WebKit::WebMouseEvent& mouse_event); 244 virtual void ForwardMouseEvent(const WebKit::WebMouseEvent& mouse_event);
244 void ForwardWheelEvent(const WebKit::WebMouseWheelEvent& wheel_event); 245 void ForwardWheelEvent(const WebKit::WebMouseWheelEvent& wheel_event);
245 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event); 246 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event);
246 virtual void ForwardEditCommand(const std::string& name, 247 virtual void ForwardEditCommand(const std::string& name,
247 const std::string& value); 248 const std::string& value);
249 virtual void ForwardEditCommandsForNextKeyEvent(
250 const EditCommands& edit_commands);
248 251
249 // Update the text direction of the focused input element and notify it to a 252 // Update the text direction of the focused input element and notify it to a
250 // renderer process. 253 // renderer process.
251 // These functions have two usage scenarios: changing the text direction 254 // These functions have two usage scenarios: changing the text direction
252 // from a menu (as Safari does), and; changing the text direction when a user 255 // from a menu (as Safari does), and; changing the text direction when a user
253 // presses a set of keys (as IE and Firefox do). 256 // presses a set of keys (as IE and Firefox do).
254 // 1. Change the text direction from a menu. 257 // 1. Change the text direction from a menu.
255 // In this scenario, we receive a menu event only once and we should update 258 // In this scenario, we receive a menu event only once and we should update
256 // the text direction immediately when a user chooses a menu item. So, we 259 // the text direction immediately when a user chooses a menu item. So, we
257 // should call both functions at once as listed in the following snippet. 260 // should call both functions at once as listed in the following snippet.
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 524
522 // Set when we cancel updating the text direction. 525 // Set when we cancel updating the text direction.
523 // This flag also ignores succeeding update requests until we call 526 // This flag also ignores succeeding update requests until we call
524 // NotifyTextDirection(). 527 // NotifyTextDirection().
525 bool text_direction_canceled_; 528 bool text_direction_canceled_;
526 529
527 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 530 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
528 }; 531 };
529 532
530 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 533 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698