Chromium Code Reviews

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

Issue 1801002: AutoFill: Notify the renderer when the page has finished translating. Extract (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Update comment. Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « chrome/renderer/form_manager_unittest.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 496 matching lines...)
507 507
508 // Adds the given file chooser request to the file_chooser_completion_ queue 508 // Adds the given file chooser request to the file_chooser_completion_ queue
509 // (see that var for more) and requests the chooser be displayed if there are 509 // (see that var for more) and requests the chooser be displayed if there are
510 // no other waiting items in the queue. 510 // no other waiting items in the queue.
511 // 511 //
512 // Returns true if the chooser was successfully scheduled. False means we 512 // Returns true if the chooser was successfully scheduled. False means we
513 // didn't schedule anything. 513 // didn't schedule anything.
514 bool ScheduleFileChooser(const ViewHostMsg_RunFileChooser_Params& params, 514 bool ScheduleFileChooser(const ViewHostMsg_RunFileChooser_Params& params,
515 WebKit::WebFileChooserCompletion* completion); 515 WebKit::WebFileChooserCompletion* completion);
516 516
517 // Called when the translate helper has finished translating the page. We use
518 // this signal to re-scan the page for forms.
519 void OnPageTranslated();
520
517 // The language code used when the page language is unknown. 521 // The language code used when the page language is unknown.
518 static const char* const kUnknownLanguageCode; 522 static const char* const kUnknownLanguageCode;
519 523
520 protected: 524 protected:
521 // RenderWidget overrides: 525 // RenderWidget overrides:
522 virtual void Close(); 526 virtual void Close();
523 virtual void OnResize(const gfx::Size& new_size, 527 virtual void OnResize(const gfx::Size& new_size,
524 const gfx::Rect& resizer_rect); 528 const gfx::Rect& resizer_rect);
525 virtual void DidInitiatePaint(); 529 virtual void DidInitiatePaint();
526 virtual void DidFlushPaint(); 530 virtual void DidFlushPaint();
(...skipping 675 matching lines...)
1202 1206
1203 // Site isolation metrics flags. These are per-page-load counts, reset to 0 1207 // Site isolation metrics flags. These are per-page-load counts, reset to 0
1204 // in OnClosePage. 1208 // in OnClosePage.
1205 int cross_origin_access_count_; 1209 int cross_origin_access_count_;
1206 int same_origin_access_count_; 1210 int same_origin_access_count_;
1207 1211
1208 DISALLOW_COPY_AND_ASSIGN(RenderView); 1212 DISALLOW_COPY_AND_ASSIGN(RenderView);
1209 }; 1213 };
1210 1214
1211 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1215 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/renderer/form_manager_unittest.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine