summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r--chrome/renderer/render_view.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index 678dbb5..e58a641 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -541,6 +541,7 @@ class RenderView : public RenderWidget,
void OnInstallMissingPlugin();
void OnFileChooserResponse(const std::vector<FilePath>& file_names);
void OnEnableViewSourceMode();
+ void OnEnableIntrinsicWidthChangedMode();
void OnUpdateBackForwardListCount(int back_list_count,
int forward_list_count);
void OnGetAccessibilityInfo(
@@ -799,6 +800,13 @@ class RenderView : public RenderWidget,
// it's for the selection clipboard.
std::string selection_text_;
+ // Cache the preferred width of the page in order to prevent sending the IPC
+ // when layout() recomputes it but it doesn't actually change.
+ int preferred_width_;
+
+ // If true, we send IPC messages when the preferred width changes.
+ bool send_preferred_width_changes_;
+
DISALLOW_COPY_AND_ASSIGN(RenderView);
};