Permalink
Browse files

Source files linted.

  • Loading branch information...
1 parent 9d98abc commit 7756b9297ac2149596528011c915a6c788308616 Michelangelo De Simone committed Feb 5, 2012
Showing with 7,231 additions and 7,211 deletions.
  1. +3,856 −3,856 BrowserAdapter.cpp
  2. +514 −504 BrowserAdapter.h
  3. +38 −38 BrowserAdapterManager.cpp
  4. +10 −10 BrowserAdapterManager.h
  5. +6 −6 BrowserCenteredZoom.h
  6. +1,546 −1,546 BrowserClientBase.cpp
  7. +141 −141 BrowserClientBase.h
  8. +15 −15 BrowserMetaViewport.h
  9. +130 −130 BrowserOffscreen.cpp
  10. +37 −27 BrowserOffscreen.h
  11. +17 −17 BrowserScrollableLayer.h
  12. +148 −148 ElementInfo.cpp
  13. +16 −16 ElementInfo.h
  14. +126 −126 ImageInfo.cpp
  15. +14 −14 ImageInfo.h
  16. +60 −60 InteractiveInfo.cpp
  17. +8 −8 InteractiveInfo.h
  18. +135 −135 JsonNPObject.cpp
  19. +73 −73 JsonNPObject.h
  20. +46 −46 KineticScroller.cpp
  21. +1 −1 KineticScroller.h
  22. +94 −94 NPObjectEvent.cpp
  23. +32 −32 NPObjectEvent.h
  24. +75 −75 Rectangle.cpp
  25. +9 −9 Rectangle.h
  26. +74 −74 UrlInfo.cpp
  27. +10 −10 UrlInfo.h
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -22,77 +22,77 @@ LICENSE@@@ */
BrowserAdapterManager* BrowserAdapterManager::instance()
{
- static BrowserAdapterManager* s_instance = 0;
- if (G_UNLIKELY(s_instance == 0)) {
+ static BrowserAdapterManager* s_instance = 0;
+ if (G_UNLIKELY(s_instance == 0)) {
- s_instance = new BrowserAdapterManager;
- }
+ s_instance = new BrowserAdapterManager;
+ }
- return s_instance;
+ return s_instance;
}
BrowserAdapterManager::BrowserAdapterManager()
- : m_adapterList(0)
+ : m_adapterList(0)
{
}
BrowserAdapterManager::~BrowserAdapterManager()
{
- g_list_free(m_adapterList);
+ g_list_free(m_adapterList);
}
void BrowserAdapterManager::registerAdapter(BrowserAdapter* adapter)
{
- m_adapterList = g_list_prepend(m_adapterList, adapter);
+ m_adapterList = g_list_prepend(m_adapterList, adapter);
}
void BrowserAdapterManager::unregisterAdapter(BrowserAdapter* adapter)
{
- m_adapterList = g_list_remove(m_adapterList, adapter);
+ m_adapterList = g_list_remove(m_adapterList, adapter);
}
void BrowserAdapterManager::adapterActivated(BrowserAdapter* adapter, bool activated)
{
- if (activated) {
+ if (activated) {
- GList* head = g_list_first(m_adapterList);
+ GList* head = g_list_first(m_adapterList);
if (head && head->data != adapter) {
- m_adapterList = g_list_remove(m_adapterList, adapter);
- m_adapterList = g_list_prepend(m_adapterList, adapter);
- }
+ m_adapterList = g_list_remove(m_adapterList, adapter);
+ m_adapterList = g_list_prepend(m_adapterList, adapter);
+ }
- // Freeze all the other adapters and thaw this one
- for (GList* iter = g_list_first(m_adapterList); iter; iter = g_list_next(iter)) {
+ // Freeze all the other adapters and thaw this one
+ for (GList* iter = g_list_first(m_adapterList); iter; iter = g_list_next(iter)) {
- BrowserAdapter* a = (BrowserAdapter*) iter->data;
- if (a == adapter)
- continue;
+ BrowserAdapter* a = (BrowserAdapter*) iter->data;
+ if (a == adapter)
+ continue;
- a->freeze();
- }
+ a->freeze();
+ }
- adapter->thaw();
- }
-/*
- // if we are really concerned about memory we should enable this
- else {
- adapter->freeze();
- }
-*/
+ adapter->thaw();
+ }
+ /*
+ // if we are really concerned about memory we should enable this
+ else {
+ adapter->freeze();
+ }
+ */
}
void BrowserAdapterManager::inactiveAdaptersActivate()
{
- for (GList* iter = g_list_first(m_adapterList); iter; iter = g_list_next(iter)) {
+ for (GList* iter = g_list_first(m_adapterList); iter; iter = g_list_next(iter)) {
- BrowserAdapter* a = (BrowserAdapter*) iter->data;
- //thaw the first frozen adapter that is encountered
- if(a->isFrozen()){
-
- a->thaw();
- break;
- }
+ BrowserAdapter* a = (BrowserAdapter*) iter->data;
+ //thaw the first frozen adapter that is encountered
+ if(a->isFrozen()) {
- }
+ a->thaw();
+ break;
+ }
+
+ }
}
View
@@ -27,21 +27,21 @@ class BrowserAdapterManager
{
public:
- static BrowserAdapterManager* instance();
+ static BrowserAdapterManager* instance();
+
+ void registerAdapter(BrowserAdapter* adapter);
+ void unregisterAdapter(BrowserAdapter* adapter);
+ void adapterActivated(BrowserAdapter* adapter, bool activated);
+ void inactiveAdaptersActivate();
- void registerAdapter(BrowserAdapter* adapter);
- void unregisterAdapter(BrowserAdapter* adapter);
- void adapterActivated(BrowserAdapter* adapter, bool activated);
- void inactiveAdaptersActivate();
-
private:
- BrowserAdapterManager();
- ~BrowserAdapterManager();
+ BrowserAdapterManager();
+ ~BrowserAdapterManager();
private:
-
- GList* m_adapterList;
+
+ GList* m_adapterList;
};
View
@@ -21,12 +21,12 @@ LICENSE@@@ */
struct BrowserCenteredZoom
{
- double scale;
- int centerX;
- int centerY;
- int scrollX;
- int scrollY;
- double zoomLevel;
+ double scale;
+ int centerX;
+ int centerY;
+ int scrollX;
+ int scrollY;
+ double zoomLevel;
};
#endif /* BROWSERCENTEREDZOOM_H */
Oops, something went wrong.

0 comments on commit 7756b92

Please sign in to comment.