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

Side by Side Diff: chrome/renderer/render_view.h

Issue 523108: Port back CLD to Linux and Mac and fix Trad Chinese detection (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 // Sends a message and runs a nested message loop. 430 // Sends a message and runs a nested message loop.
431 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); 431 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message);
432 432
433 // Called when the "idle" user script state has been reached. See 433 // Called when the "idle" user script state has been reached. See
434 // UserScript::DOCUMENT_IDLE. 434 // UserScript::DOCUMENT_IDLE.
435 void OnUserScriptIdleTriggered(WebKit::WebFrame* frame); 435 void OnUserScriptIdleTriggered(WebKit::WebFrame* frame);
436 436
437 PageTranslator* page_translator() const { return page_translator_.get(); } 437 PageTranslator* page_translator() const { return page_translator_.get(); }
438 438
439 // Returns the ISO 639_1 language code of the current page 439 // Returns the ISO 639_1 language code of the current page
440 // (ex: en, fr, zh...). Returns 'unknown' if the language could not be 440 // (ex: en, fr, zh...). Returns 'und' (ISO 639-2 code for undetermined)
441 // determined. 441 // if the language could not be determined.
442 std::string DetectLanguage(); 442 std::string DetectLanguage();
443 443
444 protected: 444 protected:
445 // RenderWidget overrides: 445 // RenderWidget overrides:
446 virtual void Close(); 446 virtual void Close();
447 virtual void OnResize(const gfx::Size& new_size, 447 virtual void OnResize(const gfx::Size& new_size,
448 const gfx::Rect& resizer_rect); 448 const gfx::Rect& resizer_rect);
449 virtual void DidPaint(); 449 virtual void DidPaint();
450 virtual void DidHandleKeyEvent(); 450 virtual void DidHandleKeyEvent();
451 451
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 int64 session_storage_namespace_id_; 1013 int64 session_storage_namespace_id_;
1014 1014
1015 // Page translation related objects. 1015 // Page translation related objects.
1016 TextTranslatorImpl text_translator_; 1016 TextTranslatorImpl text_translator_;
1017 scoped_ptr<PageTranslator> page_translator_; 1017 scoped_ptr<PageTranslator> page_translator_;
1018 1018
1019 DISALLOW_COPY_AND_ASSIGN(RenderView); 1019 DISALLOW_COPY_AND_ASSIGN(RenderView);
1020 }; 1020 };
1021 1021
1022 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1022 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/extension_api_client_unittest.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698