summaryrefslogtreecommitdiffstats
path: root/views/view.h
diff options
context:
space:
mode:
authorglotov@google.com <glotov@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-25 15:09:06 +0000
committerglotov@google.com <glotov@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-25 15:09:06 +0000
commitb2b7180173280cecff7219287f1e9895ce51b0c8 (patch)
treeb35d9ae10df803745e4b498ad5c019494a6f722d /views/view.h
parent3ae5bab014f04b9e19c43f2e955c16d340df6fa6 (diff)
downloadchromium_src-b2b7180173280cecff7219287f1e9895ce51b0c8.zip
chromium_src-b2b7180173280cecff7219287f1e9895ce51b0c8.tar.gz
chromium_src-b2b7180173280cecff7219287f1e9895ce51b0c8.tar.bz2
Virtual LocaleChanged() callback added to views hierarchy to notify
views of the locale change so they could reload relevant data. BUG=none TEST=none Review URL: http://codereview.chromium.org/1145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42614 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.h')
-rw-r--r--views/view.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/view.h b/views/view.h
index f2469f7..29cd1a9 100644
--- a/views/view.h
+++ b/views/view.h
@@ -982,6 +982,12 @@ class View : public AcceleratorTarget {
// call this method on the RootView.
virtual void ThemeChanged();
+ // Called when the locale has changed, overriding allows individual Views to
+ // update locale-dependent resources (strings, bitmaps) it may have cached
+ // internally. Subclasses that override this method must call the base class
+ // implementation to ensure child views are processed.
+ virtual void LocaleChanged();
+
#ifndef NDEBUG
// Returns true if the View is currently processing a paint.
virtual bool IsProcessingPaint() const;